Browse Source

Fix dll name

remi durand 3 years ago
parent
commit
0279c6da42
2 changed files with 3 additions and 4 deletions
  1. 2 3
      src/PrusaSlicer_app_msvc.cpp
  2. 1 1
      src/platform/msw/Slic3r.rc.in

+ 2 - 3
src/PrusaSlicer_app_msvc.cpp

@@ -283,12 +283,11 @@ int wmain(int argc, wchar_t **argv)
 
     wchar_t path_to_slic3r[MAX_PATH + 1] = { 0 };
     wcscpy(path_to_slic3r, path_to_exe);
-    wcscat(path_to_slic3r, SLIC3R_APP_WKEY);
-    wcscat(path_to_slic3r, L".dll");
+    wcscat(path_to_slic3r, L"Slic3r.dll");
 //    printf("Loading Slic3r library: %S\n", path_to_slic3r);
     HINSTANCE hInstance_Slic3r = LoadLibraryExW(path_to_slic3r, nullptr, 0);
     if (hInstance_Slic3r == nullptr) {
-        printf(SLIC3R_APP_KEY ".dll was not loaded, error code: %d\n", GetLastError());
+        printf("Slic3r.dll was not loaded, error code: %d\n", GetLastError());
         return -1;
     }
 

+ 1 - 1
src/platform/msw/Slic3r.rc.in

@@ -22,4 +22,4 @@ PRODUCTVERSION @SLIC3R_RC_VERSION@
  }
 }
 2 ICON "@SLIC3R_RESOURCES_DIR@/icons/@SLIC3R_APP_KEY@.ico"
-1 24 "Slic3r.manifest" 
+1 24 "@SLIC3R_APP_KEY@.manifest"