mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 14:14:46 +00:00
winhlp32: Remove unused assignments (Coverity).
This commit is contained in:
parent
a69c488f08
commit
6c1d5f0bac
|
@ -1131,7 +1131,6 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
|
||||||
win->hHistoryWnd = hWnd;
|
win->hHistoryWnd = hWnd;
|
||||||
break;
|
break;
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
win = (WINHELP_WINDOW*) GetWindowLongPtrW(hWnd, 0);
|
|
||||||
hDc = GetDC(hWnd);
|
hDc = GetDC(hWnd);
|
||||||
GetTextMetricsW(hDc, &tm);
|
GetTextMetricsW(hDc, &tm);
|
||||||
GetWindowRect(hWnd, &r);
|
GetWindowRect(hWnd, &r);
|
||||||
|
@ -1146,7 +1145,6 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
|
||||||
ReleaseDC(hWnd, hDc);
|
ReleaseDC(hWnd, hDc);
|
||||||
break;
|
break;
|
||||||
case WM_LBUTTONDOWN:
|
case WM_LBUTTONDOWN:
|
||||||
win = (WINHELP_WINDOW*) GetWindowLongPtrW(hWnd, 0);
|
|
||||||
hDc = GetDC(hWnd);
|
hDc = GetDC(hWnd);
|
||||||
GetTextMetricsW(hDc, &tm);
|
GetTextMetricsW(hDc, &tm);
|
||||||
i = HIWORD(lParam) / tm.tmHeight;
|
i = HIWORD(lParam) / tm.tmHeight;
|
||||||
|
@ -1156,7 +1154,6 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
|
||||||
break;
|
break;
|
||||||
case WM_PAINT:
|
case WM_PAINT:
|
||||||
hDc = BeginPaint(hWnd, &ps);
|
hDc = BeginPaint(hWnd, &ps);
|
||||||
win = (WINHELP_WINDOW*) GetWindowLongPtrW(hWnd, 0);
|
|
||||||
GetTextMetricsW(hDc, &tm);
|
GetTextMetricsW(hDc, &tm);
|
||||||
|
|
||||||
for (i = 0; i < Globals.history.index; i++)
|
for (i = 0; i < Globals.history.index; i++)
|
||||||
|
|
Loading…
Reference in a new issue