Skip to content

Commit ba97417

Browse files
committed
[installer] small fix
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
1 parent 7d72e09 commit ba97417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

installer/installer_setup/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ void ShowWindow(HINSTANCE hInstance, int nCmdShow) {
223223
}
224224

225225
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow) {
226+
SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32);
227+
226228
LPWSTR* szArglist;
227229
int nArgs;
228230
szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
@@ -238,7 +240,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow) {
238240
}
239241
LocalFree(szArglist);
240242

241-
SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32);
242243
if (args == "") {
243244
ShowWindow(hInstance, nCmdShow);
244245
}

0 commit comments

Comments
 (0)