winecfg: Ensure registry key is initialised before updating Windows version.

Signed-off-by: Owen Rudge <orudge@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Owen Rudge 2020-08-31 23:10:22 +01:00 committed by Alexandre Julliard
parent d08ef1e2ca
commit 1eed470674

View file

@ -247,14 +247,14 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR szCmdLine, int nShow)
Wow64RevertWow64FsRedirection( redir );
}
cmd_ret = ProcessCmdLine(szCmdLine);
if (cmd_ret >= 0) return cmd_ret;
if (initialize(hInstance)) {
WINE_ERR("initialization failed, aborting\n");
ExitProcess(1);
}
cmd_ret = ProcessCmdLine(szCmdLine);
if (cmd_ret >= 0) return cmd_ret;
/*
* The next 9 lines should be all that is needed
* for the Wine Configuration property sheet