Dmitry Timoshkov : comctl32: Fix a compilation warning in 64-bit mode.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 1 06:44:35 CDT 2007


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu May 31 23:00:27 2007 +0900

comctl32: Fix a compilation warning in 64-bit mode.

---

 dlls/comctl32/toolbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 2dc9a01..4b1e552 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -2668,7 +2668,7 @@ TOOLBAR_AddBitmapToImageList(TOOLBAR_INFO *infoPtr, HIMAGELIST himlDef, const TB
     TRACE("adding hInst=%p nID=%d nButtons=%d\n", bitmap->hInst, bitmap->nID, bitmap->nButtons);
     /* Add bitmaps to the default image list */
     if (bitmap->hInst == NULL)         /* a handle was passed */
-        hbmLoad = (HBITMAP)CopyImage((HBITMAP)bitmap->nID, IMAGE_BITMAP, 0, 0, 0);
+        hbmLoad = (HBITMAP)CopyImage(ULongToHandle(bitmap->nID), IMAGE_BITMAP, 0, 0, 0);
     else
         hbmLoad = CreateMappedBitmap(bitmap->hInst, bitmap->nID, 0, NULL, 0);
 




More information about the wine-cvs mailing list