James Hawkins : msi: WriteEnvironmentStrings should also write to REG_EXPAND_SZ strings.
Alexandre Julliard
julliard at winehq.org
Mon Jan 7 08:39:07 CST 2008
Module: wine
Branch: master
Commit: 31c461ea5b3e201dd62b257d7e88891754d3c80d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=31c461ea5b3e201dd62b257d7e88891754d3c80d
Author: James Hawkins <truiken at gmail.com>
Date: Sat Jan 5 11:46:09 2008 -0600
msi: WriteEnvironmentStrings should also write to REG_EXPAND_SZ strings.
---
dlls/msi/action.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index b1841f7..9e0cf1f 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -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)
More information about the wine-cvs
mailing list