regedit: Call InitCommonControls after command-line has been processed.

Avoid triggering the load of comctl32 early.
This commit is contained in:
Rémi Bernon 2022-09-29 18:03:26 +02:00 committed by Alexandre Julliard
parent 81e9b72dc9
commit 99b3862e67

View file

@ -132,8 +132,6 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
HACCEL hAccel;
BOOL is_wow64;
InitCommonControls();
if (ProcessCmdLine(GetCommandLineW())) {
return 0;
}
@ -161,6 +159,8 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
Wow64RevertWow64FsRedirection( redir );
}
InitCommonControls();
/* Initialize global strings */
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, ARRAY_SIZE(szTitle));
LoadStringW(hInstance, IDS_REGISTRY_DEFAULT_VALUE, g_pszDefaultValueName, ARRAY_SIZE(g_pszDefaultValueName));