Browse Source

libp3dtool_d

David Rose 16 years ago
parent
commit
5c4dac4493
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dtool/src/dtoolutil/executionEnvironment.cxx

+ 4 - 0
dtool/src/dtoolutil/executionEnvironment.cxx

@@ -455,7 +455,11 @@ void ExecutionEnvironment::
 read_args() {
 read_args() {
 
 
 #ifdef WIN32_VC
 #ifdef WIN32_VC
+#ifdef _DEBUG
+  HMODULE dllhandle = GetModuleHandle("libp3dtool_d.dll");
+#else
   HMODULE dllhandle = GetModuleHandle("libp3dtool.dll");
   HMODULE dllhandle = GetModuleHandle("libp3dtool.dll");
+#endif
   if (dllhandle != 0) {
   if (dllhandle != 0) {
     static const DWORD buffer_size = 1024;
     static const DWORD buffer_size = 1024;
     char buffer[buffer_size];
     char buffer[buffer_size];