Преглед изворни кода

check for libpandaexpress_d.dll in memory for a debug build

David Rose пре 15 година
родитељ
комит
cec4620edb
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      direct/src/plugin/p3dPythonRun.cxx

+ 3 - 1
direct/src/plugin/p3dPythonRun.cxx

@@ -156,7 +156,9 @@ run_python() {
 
 #ifdef _WIN32
   // Of course it's already resident, so use that version.
-  HMODULE h = GetModuleHandle("libpandaexpress.dll");
+  string basename = Filename::dso_filename("libpandaexpress.so").to_os_specific();
+  HMODULE h = GetModuleHandle(basename.c_str());
+
   if (h == NULL) {
     nout << "Can't find libpandaexpress in memory.\n";
   } else {