Skip to content

Commit

Permalink
Fix dll name
Browse files Browse the repository at this point in the history
  • Loading branch information
remi durand committed Apr 12, 2021
1 parent 6f99e22 commit 0279c6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/PrusaSlicer_app_msvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/platform/msw/Slic3r.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ PRODUCTVERSION @SLIC3R_RC_VERSION@
}
}
2 ICON "@SLIC3R_RESOURCES_DIR@/icons/@[email protected]"
1 24 "Slic3r.manifest"
1 24 "@SLIC3R_APP_KEY@.manifest"

0 comments on commit 0279c6d

Please sign in to comment.