James Hawkins : msi: Initialize type. If the value did not exist, type was uninitialized and passed to RegSetValueExW.
Alexandre Julliard
julliard at winehq.org
Thu Dec 17 10:37:09 CST 2009
Module: wine
Branch: master
Commit: 26d541b2a9790a85095bfa6aab287cf25b8e7455
URL: http://source.winehq.org/git/wine.git/?a=commit;h=26d541b2a9790a85095bfa6aab287cf25b8e7455
Author: James Hawkins <truiken at gmail.com>
Date: Wed Dec 16 19:05:27 2009 -0800
msi: Initialize type. If the value did not exist, type was uninitialized and passed to RegSetValueExW.
---
dlls/msi/action.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index a5c916e..7904770 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -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))
More information about the wine-cvs
mailing list