Michael Stefaniuc : atl: Remove two superfluous casts.

Alexandre Julliard julliard at winehq.org
Fri Dec 5 07:42:57 CST 2008


Module: wine
Branch: master
Commit: fa1d0498470b120d2ad01648782c9eff17bcf2c4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fa1d0498470b120d2ad01648782c9eff17bcf2c4

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Dec  5 07:50:43 2008 +0100

atl: Remove two superfluous casts.

---

 dlls/atl/atl_ax.c    |    2 +-
 dlls/atl/registrar.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index a5ae342..c98cba7 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -1244,7 +1244,7 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO
     hgl = LoadResource (hInst, hrsrc);
     if ( !hgl )
         return NULL;
-    ptr = (LPCDLGTEMPLATEW)LockResource ( hgl );
+    ptr = LockResource ( hgl );
     if (!ptr)
     {
         FreeResource( hgl );
diff --git a/dlls/atl/registrar.c b/dlls/atl/registrar.c
index dd8b7a2..d3ca9b0 100644
--- a/dlls/atl/registrar.c
+++ b/dlls/atl/registrar.c
@@ -439,7 +439,7 @@ static HRESULT resource_register(Registrar *This, LPCOLESTR resFileName,
     if(hins) {
         src = FindResourceW(hins, szID, szType);
         if(src) {
-            regstra = (LPSTR)LoadResource(hins, src);
+            regstra = LoadResource(hins, src);
             reslen = SizeofResource(hins, src);
             if(regstra) {
                 len = MultiByteToWideChar(CP_ACP, 0, regstra, reslen, NULL, 0)+1;




More information about the wine-cvs mailing list