- Timestamp:
- Oct 6, 2015 6:50:59 PM (9 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/uri.cpp
r58050 r58066 679 679 RTDECL(char *) RTUriFileCreate(const char *pszPath) 680 680 { 681 /* Empty paths are invalid. */ 682 AssertPtrReturn(pszPath, NULL); 683 AssertReturn(*pszPath, NULL); 684 681 685 char *pszResult = NULL; 682 686 if (pszPath) … … 713 717 RTStrFree(pszPath1); 714 718 } 715 }716 else717 {718 char *pszResTmp;719 int cchRes = RTStrAPrintf(&pszResTmp, "file://");720 if (cchRes)721 pszResult = pszResTmp;722 719 } 723 720 -
trunk/src/VBox/Runtime/testcase/tstRTUri.cpp
r58065 r58066 333 333 /* .uFormat =*/ URI_FILE_FORMAT_UNIX, 334 334 /* .pszCreatedPath =*/ NULL, 335 /* .pszCreatedUri =*/ "file://",335 /* .pszCreatedUri =*/ NULL, 336 336 /* PathCreateFromUrl = "" - differs */ 337 337 /* UrlCreateFromPath => 0x80070057 (E_INVALIDARG) */ … … 342 342 /* .uFormat =*/ URI_FILE_FORMAT_WIN, 343 343 /* .pszCreatedPath =*/ NULL, 344 /* .pszCreatedUri =*/ "file://",344 /* .pszCreatedUri =*/ NULL, 345 345 /* PathCreateFromUrl = "" - differs */ 346 346 /* UrlCreateFromPath => 0x80070057 (E_INVALIDARG) */
Note:
See TracChangeset
for help on using the changeset viewer.