msi: WriteEnvironmentStrings should also write to REG_EXPAND_SZ strings.

This commit is contained in:
James Hawkins 2008-01-05 11:46:09 -06:00 committed by Alexandre Julliard
parent 4b4f737bfc
commit 31c461ea5b
1 changed files with 1 additions and 1 deletions

View File

@ -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)