From 0279c6da42e78adaba4d9456fb7ac12fd48660f4 Mon Sep 17 00:00:00 2001 From: remi durand Date: Mon, 12 Apr 2021 02:15:39 +0200 Subject: [PATCH] Fix dll name --- src/PrusaSlicer_app_msvc.cpp | 5 ++--- src/platform/msw/Slic3r.rc.in | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/PrusaSlicer_app_msvc.cpp b/src/PrusaSlicer_app_msvc.cpp index 972f47d163b..161c93a27fe 100644 --- a/src/PrusaSlicer_app_msvc.cpp +++ b/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; } diff --git a/src/platform/msw/Slic3r.rc.in b/src/platform/msw/Slic3r.rc.in index 6d4ae811e3a..bee2d036738 100644 --- a/src/platform/msw/Slic3r.rc.in +++ b/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"