diff src/toolbar-msw.c @ 5921:68639fb08af8 cygwin

no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
author Henry Thompson <ht@markup.co.uk>
date Wed, 23 Apr 2014 22:22:37 +0100
parents 56144c8593a8
children e2fae7783046
line wrap: on
line diff
--- a/src/toolbar-msw.c	Mon Apr 21 11:42:50 2014 +0100
+++ b/src/toolbar-msw.c	Wed Apr 23 22:22:37 2014 +0100
@@ -97,7 +97,7 @@
 	  
       /* finally get rid of the image list assuming it clears up its
          bitmaps */
-      qxeSendMessage (toolbarwnd, TB_GETIMAGELIST, 0, (LONG) &ilist);
+      qxeSendMessage (toolbarwnd, TB_GETIMAGELIST, 0, (intptr_t) &ilist);
       if (ilist)
 	{
 	  ImageList_Destroy (ilist);
@@ -367,7 +367,8 @@
 			      | CCS_ADJUSTABLE,
 			      x, y, bar_width, bar_height,
 			      FRAME_MSWINDOWS_HANDLE (f),
-			      (HMENU)(TOOLBAR_ID_BIAS + pos),
+			      /* odd param: pointer _or_ integer id . . . */
+			      (HMENU)(intptr_t)(TOOLBAR_ID_BIAS + pos),
 			      NULL, 
 			      NULL))==NULL)
 	{