mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Remove call to SetDefaultDllDirectories (#19)
This API isn't present in Windows 7 SP1.
This commit is contained in:
parent
eb5d094715
commit
58d9659d53
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue