taskmgr: Remove some superfluous casts.

Michael Stefaniuc mstefani at redhat.de
Sun Dec 7 21:07:58 CST 2008


---
 programs/taskmgr/dbgchnl.c  |    2 +-
 programs/taskmgr/graphctl.c |    2 +-
 programs/taskmgr/taskmgr.c  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/taskmgr/dbgchnl.c b/programs/taskmgr/dbgchnl.c
index 457713c..382675f 100644
--- a/programs/taskmgr/dbgchnl.c
+++ b/programs/taskmgr/dbgchnl.c
@@ -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;
diff --git a/programs/taskmgr/graphctl.c b/programs/taskmgr/graphctl.c
index 8b6d98d..ea51293 100644
--- a/programs/taskmgr/graphctl.c
+++ b/programs/taskmgr/graphctl.c
@@ -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) 
diff --git a/programs/taskmgr/taskmgr.c b/programs/taskmgr/taskmgr.c
index 8d05ca6..8ba832e 100644
--- a/programs/taskmgr/taskmgr.c
+++ b/programs/taskmgr/taskmgr.c
@@ -753,7 +753,7 @@ LPWSTR GetLastErrorText(LPWSTR lpwszBuf, DWORD dwSize)
         sprintfW(lpwszBuf, wszFormat, lpwszTemp, GetLastError());
     }
     if (lpwszTemp) {
-        LocalFree((HLOCAL)lpwszTemp);
+        LocalFree(lpwszTemp);
     }
     return lpwszBuf;
 }
-- 
1.6.1.rc1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081208/e1648ad4/attachment.pgp 


More information about the wine-patches mailing list