瀏覽代碼

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
 #ifdef _WIN32
   // Of course it's already resident, so use that version.
   // 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) {
   if (h == NULL) {
     nout << "Can't find libpandaexpress in memory.\n";
     nout << "Can't find libpandaexpress in memory.\n";
   } else {
   } else {