taskmgr: Remove some superfluous casts.

This commit is contained in:
Michael Stefaniuc 2008-12-08 04:07:58 +01:00 committed by Alexandre Julliard
parent f3975c5a7e
commit e899241807
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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)

View File

@ -753,7 +753,7 @@ LPWSTR GetLastErrorText(LPWSTR lpwszBuf, DWORD dwSize)
sprintfW(lpwszBuf, wszFormat, lpwszTemp, GetLastError());
}
if (lpwszTemp) {
LocalFree((HLOCAL)lpwszTemp);
LocalFree(lpwszTemp);
}
return lpwszBuf;
}