From 41f514570b07733324a844e66d9be86cd9714cb9 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 16 Oct 2006 14:42:32 +0200 Subject: [PATCH] winhelp: Cast-qual warnings fix. --- programs/winhelp/winhelp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index 9cf799344e6..6f68f82efc7 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -483,6 +483,7 @@ BOOL WINHELP_CreateHelpWindow(HLPFILE_PAGE* page, HLPFILE_WINDOWINFO* wi, HWND hWnd; BOOL bPrimary; BOOL bPopup; + LPSTR name; bPrimary = !lstrcmpi(wi->name, "main"); bPopup = wi->win_style & WS_POPUP; @@ -495,8 +496,9 @@ BOOL WINHELP_CreateHelpWindow(HLPFILE_PAGE* page, HLPFILE_WINDOWINFO* wi, win->next = Globals.win_list; Globals.win_list = win; - win->lpszName = (char*)win + sizeof(WINHELP_WINDOW); - lstrcpy((char*)win->lpszName, wi->name); + name = (char*)win + sizeof(WINHELP_WINDOW); + lstrcpy(name, wi->name); + win->lpszName = name; win->page = page; @@ -757,7 +759,7 @@ static LRESULT CALLBACK WINHELP_ButtonBoxWndProc(HWND hWnd, UINT msg, WPARAM wPa SIZE textsize; if (!button->hWnd) { - button->hWnd = CreateWindow(STRING_BUTTON, (LPSTR) button->lpszName, + button->hWnd = CreateWindow(STRING_BUTTON, button->lpszName, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, 0, 0, 0, 0, hWnd, (HMENU) button->wParam,