mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +00:00
LoadLibrary returns 0 on failure, not < 32.
This commit is contained in:
parent
41559c7282
commit
dcb5bf2e53
@ -11,7 +11,7 @@ int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
HMODULE kernel32;
|
||||
|
||||
kernel32 = LoadLibrary("KERNEL32");
|
||||
if (kernel32<32) {
|
||||
if (!kernel32) {
|
||||
fprintf(stderr,"FATAL: could not load KERNEL32!\n");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user