Commit 99b3862e authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

Avoid triggering the load of comctl32 early.
parent 81e9b72d
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment