changeset 1636:1d3013463204

Fixed a couple warnings generated by the new OS/2 code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 29 Mar 2012 17:10:04 +0000
parents 4506f4e31efb
children c8a0daa53e49
files os2/dw.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Thu Mar 29 05:18:35 2012 +0000
+++ b/os2/dw.c	Thu Mar 29 17:10:04 2012 +0000
@@ -2888,8 +2888,8 @@
 			   if(origmsg == WM_CONTROL)
 			   {
 				   svar = SHORT2FROMMP(mp1);
-				   if(!notifyhwnd && WinIsWindow(dwhab, mp2))
-                       notifyhwnd = mp2;
+				   if(!notifyhwnd && WinIsWindow(dwhab, (HWND)mp2))
+                       notifyhwnd = (HWND)mp2;
 			   }
 
                switch(svar)
@@ -3242,7 +3242,7 @@
        {
            char tmpbuf[100];
 
-           WinQueryClassName(mp2, 99, (PCH)tmpbuf);
+           WinQueryClassName((HWND)mp2, 99, (PCH)tmpbuf);
            /* Don't set the ownership if it's an entryfield or spinbutton  */
            if(strncmp(tmpbuf, "#32", 4)==0)
            {
@@ -3258,7 +3258,7 @@
                        _dw_col_set(col, val);
                    }
                }
-               if(!dw_window_get_data(mp2, "_dw_updating"))
+               if(!dw_window_get_data((HWND)mp2, "_dw_updating"))
                    WinPostMsg(hWnd, WM_USER, mp1, mp2);
            }
 		   else