jdk/src/windows/npt/npt_md.h
changeset 9840 376425f4ed3d
parent 5506 202f599c92aa
child 14342 8435a30053c1
--- a/jdk/src/windows/npt/npt_md.h	Tue Apr 12 14:23:03 2011 -0700
+++ b/jdk/src/windows/npt/npt_md.h	Fri Apr 15 09:53:05 2011 -0400
@@ -47,7 +47,7 @@
         _handle =  NULL;                                                \
         *(pnpt) = NULL;                                                 \
         buf[0] = 0;                                                     \
-        jvm = LoadLibrary("jvm.dll");                                   \
+        jvm = GetModuleHandle("jvm.dll");                               \
         if ( jvm == NULL ) NPT_ERROR("Cannot find jvm.dll");            \
         GetModuleFileName(jvm, buf, FILENAME_MAX);                      \
         lastSlash = strrchr(buf, '\\');                                 \