Commit 31c461ea authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: WriteEnvironmentStrings should also write to REG_EXPAND_SZ strings.

parent 4b4f737b
......@@ -4948,7 +4948,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
size = 0;
res = RegQueryValueExW(env, name, NULL, &type, NULL, &size);
if ((res != ERROR_SUCCESS && res != ERROR_FILE_NOT_FOUND) ||
(res == ERROR_SUCCESS && type != REG_SZ))
(res == ERROR_SUCCESS && type != REG_SZ && type != REG_EXPAND_SZ))
goto done;
if (res != ERROR_FILE_NOT_FOUND)
......
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