Skip to content

Commit 2962492

Browse files
authored
Merge pull request #6057 from BOINC/vko_small_security_fix
[installer] small fix
2 parents 7d72e09 + ba97417 commit 2962492

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)