diff --git a/src/slic3r_app_msvc.cpp b/src/slic3r_app_msvc.cpp index 9823a325d3..7cd97dfc36 100644 --- a/src/slic3r_app_msvc.cpp +++ b/src/slic3r_app_msvc.cpp @@ -181,10 +181,10 @@ extern "C" { } #ifdef SLIC3R_WRAPPER_NOCONSOLE -int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpCmdLine, int nCmdShow) +int APIENTRY wWinMain(HINSTANCE /* hInstance */, HINSTANCE /* hPrevInstance */, PWSTR /* lpCmdLine */, int /* nCmdShow */) { int argc; - wchar_t **argv = CommandLineToArgvW(lpCmdLine, &argc); + wchar_t **argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); #else int wmain(int argc, wchar_t **argv) {