James Juran <jamesjuran@alumni.psu.edu> LoadLibrary returns FALSE on failure, not < 32. Index: libtest/hello5.c =================================================================== RCS file: /home/wine/wine/libtest/hello5.c,v retrieving revision 1.6 diff -u -r1.6 hello5.c --- libtest/hello5.c 2001/02/12 03:51:05 1.6 +++ libtest/hello5.c 2002/01/14 01:02:54 @@ -11,7 +11,7 @@ HMODULE kernel32; kernel32 = LoadLibrary("KERNEL32"); - if (kernel32<32) { + if (!kernel32) { fprintf(stderr,"FATAL: could not load KERNEL32!\n"); return 0; }