Changeset 68859 in vbox
- Timestamp:
- Sep 25, 2017 4:23:02 PM (7 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
-
Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp (modified) (2 diffs)
-
GuestHost/OpenGL/util/dll.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp
r63018 r68859 39 39 static HMODULE loadSystemDll(const char *pszName) 40 40 { 41 /* Assumed here that DEBUG version of VBoxDispD3D.dll will not be installed system wide 42 but will be loaded from local folder of an application being debugged. */ 43 #ifndef DEBUG 41 44 char szPath[MAX_PATH]; 42 45 UINT cchPath = GetSystemDirectoryA(szPath, sizeof(szPath)); … … 50 53 memcpy(&szPath[cchPath + 1], pszName, cbName); 51 54 return LoadLibraryA(szPath); 55 #else 56 return LoadLibraryA(pszName); 57 #endif 52 58 } 53 59 -
trunk/src/VBox/GuestHost/OpenGL/util/dll.c
r66051 r68859 220 220 ++cwcPath; 221 221 } 222 223 if (!MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, dllname, -1, &szwPath[cwcPath], MAX_PATH - cwcPath))224 {225 DWORD winEr = GetLastError();226 crError("MultiByteToWideChar failed err %d", winEr);227 SetLastError(winEr);228 return NULL;229 }230 222 # endif /* CR_NO_GL_SYSTEM_PATH */ 223 if (!MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, dllname, -1, &szwPath[cwcPath], MAX_PATH - cwcPath)) 224 { 225 DWORD winEr = GetLastError(); 226 crError("MultiByteToWideChar failed err %d", winEr); 227 SetLastError(winEr); 228 return NULL; 229 } 231 230 #endif 232 231
Note:
See TracChangeset
for help on using the changeset viewer.

