hotspot/src/share/vm/classfile/classLoader.cpp
changeset 14471 f3a6b82e25cf
parent 13728 882756847a04
child 14588 8ec26d2d9339
--- a/hotspot/src/share/vm/classfile/classLoader.cpp	Mon Nov 05 19:33:44 2012 -0500
+++ b/hotspot/src/share/vm/classfile/classLoader.cpp	Wed Nov 07 17:53:02 2012 -0500
@@ -605,8 +605,10 @@
   // Load zip library
   char path[JVM_MAXPATHLEN];
   char ebuf[1024];
-  os::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "zip");
-  void* handle = os::dll_load(path, ebuf, sizeof ebuf);
+  void* handle = NULL;
+  if (os::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "zip")) {
+    handle = os::dll_load(path, ebuf, sizeof ebuf);
+  }
   if (handle == NULL) {
     vm_exit_during_initialization("Unable to load ZIP library", path);
   }