Module: wine Branch: master Commit: 41f514570b07733324a844e66d9be86cd9714cb9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=41f514570b07733324a844e66d...
Author: Hans Leidekker hans@it.vu.nl Date: Mon Oct 16 14:42:32 2006 +0200
winhelp: Cast-qual warnings fix.
---
programs/winhelp/winhelp.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index 9cf7993..6f68f82 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -483,6 +483,7 @@ BOOL WINHELP_CreateHelpWindow(HLPFILE_PA 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_PA 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_ButtonBo 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,