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…
Reference in New Issue