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

This commit is contained in:
Alexandre Julliard 2007-06-11 20:20:39 +02:00
parent 371e5c0628
commit 78bdd9ba94

View File

@ -107,7 +107,7 @@ static void update_comboboxes(HWND dialog)
winver = get_reg_key(config_key, keypath(""), "Version", ""); winver = get_reg_key(config_key, keypath(""), "Version", "");
ver = get_registry_version(); ver = get_registry_version();
if (*winver == '\0') if (!winver || !winver[0])
{ {
HeapFree(GetProcessHeap(), 0, winver); HeapFree(GetProcessHeap(), 0, winver);