Remove call to SetDefaultDllDirectories (#19)

This API isn't present in Windows 7 SP1.
This commit is contained in:
Justine Tunney 2021-01-16 17:50:29 -08:00
parent eb5d094715
commit 58d9659d53
2 changed files with 1 additions and 2 deletions

View file

@ -6187,7 +6187,7 @@ imp 'SetDIBitsToDevice' SetDIBitsToDevice gdi32 1883
imp 'SetDebugErrorLevel' SetDebugErrorLevel user32 2324
imp 'SetDefaultCommConfigA' SetDefaultCommConfigA kernel32 1297
imp 'SetDefaultCommConfig' SetDefaultCommConfigW kernel32 1298
imp 'SetDefaultDllDirectories' SetDefaultDllDirectories kernel32 0 1 # KernelBase
imp 'SetDefaultDllDirectories' SetDefaultDllDirectories kernel32 0 1 # KernelBase, Windows 8+, KB2533623 on Windows 7
imp 'SetDeskWallpaper' SetDeskWallpaper user32 2325
imp 'SetDesktopColorTransform' SetDesktopColorTransform user32 2326
imp 'SetDeviceGammaRamp' SetDeviceGammaRamp gdi32 1884

View file

@ -184,7 +184,6 @@ static textwindows wontreturn void WinMainNew(void) {
*/
textwindows int64_t WinMain(int64_t hInstance, int64_t hPrevInstance,
const char *lpCmdLine, int nCmdShow) {
SetDefaultDllDirectories(kNtLoadLibrarySearchSearchSystem32);
if (weaken(winsockinit)) weaken(winsockinit)();
if (weaken(WinMainForked)) weaken(WinMainForked)();
WinMainNew();