Commit 41f51457 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhelp: Cast-qual warnings fix.

parent 116236f1
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment