Changeset 58069 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Oct 7, 2015 12:05:47 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103125
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/uri.cpp
r58068 r58069 1153 1153 1154 1154 1155 RTDECL(char *) RTUriFilePath(const char *pszUri, uint32_t uFormat) 1156 { 1157 uint32_t fPathStyle; 1158 switch (uFormat) 1159 { 1160 case URI_FILE_FORMAT_WIN: fPathStyle = RTPATH_STR_F_STYLE_DOS; break; 1161 case URI_FILE_FORMAT_UNIX: fPathStyle = RTPATH_STR_F_STYLE_UNIX; break; 1162 case URI_FILE_FORMAT_AUTO: fPathStyle = RTPATH_STR_F_STYLE_HOST; break; 1163 default: AssertFailedReturn(NULL); 1164 } 1165 1155 RTDECL(char *) RTUriFilePath(const char *pszUri) 1156 { 1166 1157 char *pszPath = NULL; 1167 int rc = RTUriFilePathEx(pszUri, fPathStyle, &pszPath, 0 /*cbPath*/, NULL /*pcchPath*/);1158 int rc = RTUriFilePathEx(pszUri, RTPATH_STR_F_STYLE_HOST, &pszPath, 0 /*cbPath*/, NULL /*pcchPath*/); 1168 1159 if (RT_SUCCESS(rc)) 1169 1160 return pszPath;
Note:
See TracChangeset
for help on using the changeset viewer.