Commit 26d541b2 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Initialize type. If the value did not exist, type was uninitialized and…

msi: Initialize type. If the value did not exist, type was uninitialized and passed to RegSetValueExW.
parent 9b2af10f
......@@ -5008,6 +5008,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
FIXME("Not removing environment variable on uninstall!\n");
size = 0;
type = REG_SZ;
res = RegQueryValueExW(env, name, NULL, &type, NULL, &size);
if ((res != ERROR_SUCCESS && res != ERROR_FILE_NOT_FOUND) ||
(res == ERROR_SUCCESS && type != REG_SZ && type != REG_EXPAND_SZ))
......
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