qmgr: Remove superfluous pointer casts.

Michael Stefaniuc mstefani at redhat.de
Thu Jan 22 02:51:39 CST 2009


---
 dlls/qmgr/file.c |    2 +-
 dlls/qmgr/qmgr.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/qmgr/file.c b/dlls/qmgr/file.c
index 4129887..91cabb6 100644
--- a/dlls/qmgr/file.c
+++ b/dlls/qmgr/file.c
@@ -193,7 +193,7 @@ static DWORD CALLBACK copyProgressCallback(LARGE_INTEGER totalSize,
                                            HANDLE dstFile,
                                            LPVOID obj)
 {
-    BackgroundCopyFileImpl *file = (BackgroundCopyFileImpl *) obj;
+    BackgroundCopyFileImpl *file = obj;
     BackgroundCopyJobImpl *job = file->owner;
     ULONG64 diff;
 
diff --git a/dlls/qmgr/qmgr.c b/dlls/qmgr/qmgr.c
index 4e3d259..5fdd121 100644
--- a/dlls/qmgr/qmgr.c
+++ b/dlls/qmgr/qmgr.c
@@ -138,7 +138,7 @@ BackgroundCopyManagerImpl globalMgr = {
 HRESULT BackgroundCopyManagerConstructor(IUnknown *pUnkOuter, LPVOID *ppObj)
 {
     TRACE("(%p,%p)\n", pUnkOuter, ppObj);
-    *ppObj = (IBackgroundCopyManager *) &globalMgr;
+    *ppObj = &globalMgr;
     return S_OK;
 }
 
-- 
1.6.0.6
-------------- 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/20090122/95064389/attachment.pgp 


More information about the wine-patches mailing list