[PATCH] hhctrl.ocx: initialize ret on some error paths (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Aug 18 04:55:52 CDT 2012
Hi,
ret is uninitialized in some error paths. CID 715798
---
dlls/hhctrl.ocx/chm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/hhctrl.ocx/chm.c b/dlls/hhctrl.ocx/chm.c
index 02931f4..a961a8a 100644
--- a/dlls/hhctrl.ocx/chm.c
+++ b/dlls/hhctrl.ocx/chm.c
@@ -326,7 +326,7 @@ BOOL LoadWinTypeFromCHM(HHInfo *info)
HH_WINTYPEW wintype;
HRESULT hr;
DWORD cbRead;
- BOOL ret;
+ BOOL ret = FALSE;
static const WCHAR null[] = {0};
static const WCHAR toc_extW[] = {'h','h','c',0};
--
1.7.3.4
More information about the wine-patches
mailing list