From 87ba2ef3105efa8c7486d5db7e9d3688738c49e3 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 8 Aug 2005 11:01:31 +0000 Subject: [PATCH] - Don't keep track of the number of TB buttons. - Call the W version of SetWindowLongPtr. --- dlls/hhctrl.ocx/help.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c index 05865ce7f29..9bee4d764a4 100644 --- a/dlls/hhctrl.ocx/help.c +++ b/dlls/hhctrl.ocx/help.c @@ -45,7 +45,6 @@ typedef struct tagHHInfo HH_WINTYPEW *pHHWinType; HINSTANCE hInstance; LPWSTR szCmdLine; - DWORD dwNumTBButtons; HWND hwndTabCtrl; HFONT hFont; } HHInfo; @@ -194,7 +193,6 @@ static BOOL HH_AddToolbar(HHInfo *pHHInfo) toolbarFlags = HHWIN_BUTTON_EXPAND | HHWIN_BUTTON_BACK | HHWIN_BUTTON_STOP | HHWIN_BUTTON_REFRESH | HHWIN_BUTTON_HOME | HHWIN_BUTTON_PRINT; TB_AddButtonsFromFlags(buttons, toolbarFlags, &dwNumButtons); - pHHInfo->dwNumTBButtons = dwNumButtons; dwStyles = WS_CHILDWINDOW | WS_VISIBLE | TBSTYLE_FLAT | TBSTYLE_WRAPABLE | TBSTYLE_TOOLTIPS | CCS_NODIVIDER; @@ -338,7 +336,7 @@ static BOOL HH_AddHTMLPane(HHInfo *pHHInfo) return FALSE; /* store the pointer to the HH info struct */ - SetWindowLongPtrA(hWnd, GWLP_USERDATA, (LONG_PTR)pHHInfo); + SetWindowLongPtrW(hWnd, GWLP_USERDATA, (LONG_PTR)pHHInfo); ShowWindow(hWnd, SW_SHOW); UpdateWindow(hWnd); -- 2.11.4.GIT