[PATCH] msi: Fixed uninitialized use of "env" (Coverity)
Marcus Meissner
marcus at jet.franken.de
Thu Mar 4 02:04:28 CST 2010
Hi,
In error path we would use "env" uninitialized.
Ciao, Marcus
---
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 08cf975..378bd33 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -5933,7 +5933,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
LPWSTR data = NULL, newval = NULL, deformatted = NULL, ptr;
DWORD flags, type, size;
UINT res;
- HKEY env;
+ HKEY env = 0;
MSICOMPONENT *comp;
MSIRECORD *uirow;
int action = 0;
--
1.5.6
More information about the wine-patches
mailing list