Commit e8992418 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

taskmgr: Remove some superfluous casts.

parent f3975c5a
......@@ -111,7 +111,7 @@ static int list_channel_CB(HANDLE hProcess, void* addr, struct __wine_debug_
char val[2];
LVITEMA lvitem;
int index;
HWND hChannelLV = (HWND)user;
HWND hChannelLV = user;
lvitem.mask = LVIF_TEXT;
lvitem.pszText = channel->name;
......
......@@ -377,7 +377,7 @@ void GraphCtrl_Paint(TGraphCtrl* this, HWND hWnd, HDC dc)
/* to avoid flicker, establish a memory dc, draw to it */
/* and then BitBlt it to the client */
memDC = CreateCompatibleDC(dc);
memBitmap = (HBITMAP)CreateCompatibleBitmap(dc, this->m_nClientWidth, this->m_nClientHeight);
memBitmap = CreateCompatibleBitmap(dc, this->m_nClientWidth, this->m_nClientHeight);
oldBitmap = SelectObject(memDC, memBitmap);
if (memDC != NULL)
......
......@@ -753,7 +753,7 @@ LPWSTR GetLastErrorText(LPWSTR lpwszBuf, DWORD dwSize)
sprintfW(lpwszBuf, wszFormat, lpwszTemp, GetLastError());
}
if (lpwszTemp) {
LocalFree((HLOCAL)lpwszTemp);
LocalFree(lpwszTemp);
}
return lpwszBuf;
}
......
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