gphoto.ds: Remove superfluous pointer casts.

Michael Stefaniuc mstefani at redhat.de
Tue Jan 27 04:36:42 CST 2009


---
 dlls/gphoto2.ds/ds_image.c |    2 +-
 dlls/gphoto2.ds/ui.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/gphoto2.ds/ds_image.c b/dlls/gphoto2.ds/ds_image.c
index 8dbba1d..ae6e115 100644
--- a/dlls/gphoto2.ds/ds_image.c
+++ b/dlls/gphoto2.ds/ds_image.c
@@ -397,7 +397,7 @@ TW_UINT16 GPHOTO2_ImageNativeXferGet (pTW_IDENTITY pOrigin,
  *  will likely crash after calling.
  *
  *  Reason is that there is a lot of example code that does:
- *  bmpinfo = (LPBITMAPINFOHEADER)GlobalLock(hBITMAP); ... pointer access to bmpinfo
+ *  bmpinfo = GlobalLock(hBITMAP); ... pointer access to bmpinfo
  *
  *  Our current HBITMAP handles do not support getting GlobalLocked -> App Crash
  *
diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c
index 40afb9e..b769a6e 100644
--- a/dlls/gphoto2.ds/ui.c
+++ b/dlls/gphoto2.ds/ui.c
@@ -133,7 +133,7 @@ static void PopulateImageList(HIMAGELIST *iList, HWND list)
 #else
 			bitmap = 0;
 #endif
-			GetObjectA(bitmap,sizeof(BITMAP),(LPVOID)&bmpInfo);
+			GetObjectA(bitmap,sizeof(BITMAP),&bmpInfo);
 
 			if (*iList == 0)
 			{
-- 
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/20090127/e90a2024/attachment.pgp 


More information about the wine-patches mailing list