Commit 78bdd9ba authored by Alexandre Julliard's avatar Alexandre Julliard

winecfg: Fix potential null pointer access (spotted by Yaroslav Skorokhodov).

parent 371e5c06
......@@ -107,7 +107,7 @@ static void update_comboboxes(HWND dialog)
winver = get_reg_key(config_key, keypath(""), "Version", "");
ver = get_registry_version();
if (*winver == '\0')
if (!winver || !winver[0])
{
HeapFree(GetProcessHeap(), 0, winver);
......
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