Nikolay Sivov : winhlp32: Remove unused assignments (Coverity).
Alexandre Julliard
julliard at winehq.org
Fri Apr 11 13:21:08 CDT 2014
Module: wine
Branch: master
Commit: 6c1d5f0bac0ddc1fe03104f49a5b67cbf5412708
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6c1d5f0bac0ddc1fe03104f49a5b67cbf5412708
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Apr 11 16:48:22 2014 +0400
winhlp32: Remove unused assignments (Coverity).
---
programs/winhlp32/winhelp.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c
index cb1ac55..195a23f 100644
--- a/programs/winhlp32/winhelp.c
+++ b/programs/winhlp32/winhelp.c
@@ -1131,7 +1131,6 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
win->hHistoryWnd = hWnd;
break;
case WM_CREATE:
- win = (WINHELP_WINDOW*) GetWindowLongPtrW(hWnd, 0);
hDc = GetDC(hWnd);
GetTextMetricsW(hDc, &tm);
GetWindowRect(hWnd, &r);
@@ -1146,7 +1145,6 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
ReleaseDC(hWnd, hDc);
break;
case WM_LBUTTONDOWN:
- win = (WINHELP_WINDOW*) GetWindowLongPtrW(hWnd, 0);
hDc = GetDC(hWnd);
GetTextMetricsW(hDc, &tm);
i = HIWORD(lParam) / tm.tmHeight;
@@ -1156,7 +1154,6 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
break;
case WM_PAINT:
hDc = BeginPaint(hWnd, &ps);
- win = (WINHELP_WINDOW*) GetWindowLongPtrW(hWnd, 0);
GetTextMetricsW(hDc, &tm);
for (i = 0; i < Globals.history.index; i++)
More information about the wine-cvs
mailing list