Changeset 57865 in vbox for trunk/src/VBox/Runtime/common/path
- Timestamp:
- Sep 23, 2015 1:42:40 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102828
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/path/RTPathGlob.cpp
r57696 r57865 45 45 #if defined(RT_OS_WINDOWS) 46 46 # include <Windows.h> 47 # include "../../r3/win/internal-r3-win.h" 47 48 48 49 #elif defined(RT_OS_OS2) … … 500 501 /* Since this is used at the start of a pattern, we assume 501 502 we've got more than enough buffer space. */ 503 AssertReturn(g_pfnGetSystemWindowsDirectoryW, VERR_SYMBOL_NOT_FOUND); 502 504 PRTUTF16 pwszTmp = (PRTUTF16)pszBuf; 503 UINT cch = GetSystemWindowsDirectoryW(pwszTmp, (UINT)(cbBuf / sizeof(WCHAR)));505 UINT cch = g_pfnGetSystemWindowsDirectoryW(pwszTmp, (UINT)(cbBuf / sizeof(WCHAR))); 504 506 if (cch >= 2) 505 507 { … … 547 549 { 548 550 Assert(pszBuf); Assert(cbBuf); 551 AssertReturn(g_pfnGetSystemWindowsDirectoryW, VERR_SYMBOL_NOT_FOUND); 549 552 RTUTF16 wszSystemRoot[MAX_PATH]; 550 UINT cchSystemRoot = GetSystemWindowsDirectoryW(wszSystemRoot, MAX_PATH);553 UINT cchSystemRoot = g_pfnGetSystemWindowsDirectoryW(wszSystemRoot, MAX_PATH); 551 554 if (cchSystemRoot > 0) 552 555 return RTUtf16ToUtf8Ex(wszSystemRoot, cchSystemRoot, &pszBuf, cbBuf, pcchValue);
Note:
See TracChangeset
for help on using the changeset viewer.