Module: wine Branch: master Commit: 26d541b2a9790a85095bfa6aab287cf25b8e7455 URL: http://source.winehq.org/git/wine.git/?a=commit;h=26d541b2a9790a85095bfa6aab...
Author: James Hawkins truiken@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))