mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
winecfg: Fix potential null pointer access (spotted by Yaroslav Skorokhodov).
This commit is contained in:
parent
371e5c0628
commit
78bdd9ba94
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user