Commit dcb5bf2e authored by James Juran's avatar James Juran Committed by Alexandre Julliard

LoadLibrary returns 0 on failure, not < 32.

parent 41559c72
...@@ -11,7 +11,7 @@ int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) ...@@ -11,7 +11,7 @@ int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
HMODULE kernel32; HMODULE kernel32;
kernel32 = LoadLibrary("KERNEL32"); kernel32 = LoadLibrary("KERNEL32");
if (kernel32<32) { if (!kernel32) {
fprintf(stderr,"FATAL: could not load KERNEL32!\n"); fprintf(stderr,"FATAL: could not load KERNEL32!\n");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment