Uwe Bonnes : winhelp: Zero out WINHELP_WINDOW in
WINHELP_CreateHelpWindow.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 20 05:40:15 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 69e4c4f1be7a87ac2ccd67e75e2fb8cce98f6378
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=69e4c4f1be7a87ac2ccd67e75e2fb8cce98f6378
Author: Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de>
Date: Mon Feb 20 11:12:07 2006 +0100
winhelp: Zero out WINHELP_WINDOW in WINHELP_CreateHelpWindow.
---
programs/winhelp/winhelp.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c
index f3abdd5..6356a63 100644
--- a/programs/winhelp/winhelp.c
+++ b/programs/winhelp/winhelp.c
@@ -485,7 +485,7 @@ BOOL WINHELP_CreateHelpWindow(HLPFILE_PA
bPopup = wi->win_style & WS_POPUP;
/* Initialize WINHELP_WINDOW struct */
- win = HeapAlloc(GetProcessHeap(), 0,
+ win = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(WINHELP_WINDOW) + strlen(wi->name) + 1);
if (!win) return FALSE;
@@ -496,13 +496,6 @@ BOOL WINHELP_CreateHelpWindow(HLPFILE_PA
lstrcpy((char*)win->lpszName, wi->name);
win->page = page;
- win->first_button = 0;
- win->first_line = 0;
- win->hMainWnd = 0;
- win->hButtonBoxWnd = 0;
- win->hTextWnd = 0;
- win->hShadowWnd = 0;
- win->hHistoryWnd = 0;
win->hArrowCur = LoadCursorA(0, (LPSTR)IDC_ARROW);
win->hHandCur = LoadCursorA(0, (LPSTR)IDC_HAND);
@@ -539,7 +532,6 @@ BOOL WINHELP_CreateHelpWindow(HLPFILE_PA
MACRO_ExecuteMacro(macro->lpszMacro);
}
- win->histIndex = win->backIndex = 0;
/* Reuse existing window */
if (!bPopup)
{
More information about the wine-cvs
mailing list