LoadLibrary returns 0 on failure, not < 32.

This commit is contained in:
James Juran 2002-01-14 18:34:14 +00:00 committed by Alexandre Julliard
parent 41559c7282
commit dcb5bf2e53
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}