msi: WriteEnvironmentStrings should also write to REG_EXPAND_SZ strings.
This commit is contained in:
parent
4b4f737bfc
commit
31c461ea5b
@ -4948,7 +4948,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
|
|||||||
size = 0;
|
size = 0;
|
||||||
res = RegQueryValueExW(env, name, NULL, &type, NULL, &size);
|
res = RegQueryValueExW(env, name, NULL, &type, NULL, &size);
|
||||||
if ((res != ERROR_SUCCESS && res != ERROR_FILE_NOT_FOUND) ||
|
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;
|
goto done;
|
||||||
|
|
||||||
if (res != ERROR_FILE_NOT_FOUND)
|
if (res != ERROR_FILE_NOT_FOUND)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user