Corinna,

patch is ok now.

Thanks,
Kai

2012/7/25 Corinna Vinschen <vinsc...@redhat.com>:
> Hi Kai,
>
> On Jul 25 11:57, Kai Tietz wrote:
>> Hello Corinna,
>>
>> yeah, windowsx.h header is always a fun ...
>>
>> 2012/7/24 Corinna Vinschen <vinsc...@redhat.com>:
>> > [...]
>> > Index: svrapi.h
>> > ===================================================================
>>
>> Changes in svrapi.h is ok.
>>
>> In commctrl.h are the following nits:
>> > @@ -2128,8 +2128,8 @@
>> >
>> >  #define LVITEM_V1_SIZE __MINGW_NAME_AW_EXT(LVITEM,_V1_SIZE)
>> >
>> > -#define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
>> > -#define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
>> > +#define LPSTR_TEXTCALLBACKW ((LPWSTR)-1)
>> > +#define LPSTR_TEXTCALLBACKA ((LPSTR)-1)
>>
>> Hmm, as we have here pointer-casts, I would suggest to use here
>> instead a cast via INT_PTR type.  There was already an issue before,
>> and this fixes warnings about pointer-size and avoids wrong code.
>>
>> Changes in winioctl.h have the following nit:
>>
>> > -#define IsDsmActionNonDestructive(x) ((BOOLEAN)(((x) & 
>> > DeviceDsmActionFlag_NonDestructive) != 0L))
>> > +#define IsDsmActionNonDestructive(x) ((BOOLEAN)(!((x) & 
>> > DeviceDsmActionFlag_NonDestructive)))
>>
>> This is a != 0, therefore it has to be !! and not just a single not.
>
> Ouch, thanks for catching.
>
>> Changes in dxtmpl.h header have the following nit.
>>
>> > @@ -20,7 +20,7 @@
>> >  typedef void *DXLISTPOS;
>> >  typedef DWORD DXLISTHANDLE;
>> >
>> > -#define DX_BEFORE_START_POSITION ((void*)-1L)
>> > +#define DX_BEFORE_START_POSITION ((void*)-1)
>>
>> we should use here explicit cast to INT_PTR before casting to void.
>> (same as above).
>>
>> The changes in lmaccess.h are ok, but this is a candidate for the
>> __LONG32 changes.
>
> Indeed, but the bulk change to use __LONG32 is the last step.  The order
> I was planning is this:
>
> - Changes to *avoid* using __MSABI_LONG.
> - The bulk __MSABI_LONG change.
> - Changes to *avoid* using __LONG32. (*)
> - Bulk __LONG32 change.
>
> (*) The more I look into the headers, the more I think we should avoid
>     __LONG32 as much as possible.  Using LONG or ULONG somehow looks
>     much better...
>
>> In wininet.h we have the same issue about casting to a pointer.  We
>> should go via cast to INT_PTR to it.
>>
>> >      WINBOOL fAllowSession;
>> >    } CookieDecision;
>> >
>> > -#define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)(-1L))
>> > +#define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)-1)
>> >
>> >  #define FTP_TRANSFER_TYPE_UNKNOWN 0x00000000
>> >  #define FTP_TRANSFER_TYPE_ASCII 0x00000001
>>
>> Changes in mmsystem.h, and prsht.h are ok.
>
> Below you'll find the fixed files commctrl.h, winioctl.h, dxtmpl.h,
> and wininet.h.  Please see if that's ok now.
>
>
> Thanks,
> Corinna
>
>
> Index: commctrl.h
> ===================================================================
> --- commctrl.h  (revision 5260)
> +++ commctrl.h  (working copy)
> @@ -525,7 +525,7 @@
>  #endif
>
>  #define HDM_GETITEMCOUNT (HDM_FIRST+0)
> -#define Header_GetItemCount(hwndHD) 
> (int)SNDMSG((hwndHD),HDM_GETITEMCOUNT,0,0L)
> +#define Header_GetItemCount(hwndHD) 
> (int)SNDMSG((hwndHD),HDM_GETITEMCOUNT,(WPARAM)0,(LPARAM)0)
>
>  #define HDM_INSERTITEMA (HDM_FIRST+1)
>  #define HDM_INSERTITEMW (HDM_FIRST+10)
> @@ -535,7 +535,7 @@
>  #define Header_InsertItem(hwndHD,i,phdi) 
> (int)SNDMSG((hwndHD),HDM_INSERTITEM,(WPARAM)(int)(i),(LPARAM)(const HD_ITEM 
> *)(phdi))
>
>  #define HDM_DELETEITEM (HDM_FIRST+2)
> -#define Header_DeleteItem(hwndHD,i) 
> (WINBOOL)SNDMSG((hwndHD),HDM_DELETEITEM,(WPARAM)(int)(i),0L)
> +#define Header_DeleteItem(hwndHD,i) 
> (WINBOOL)SNDMSG((hwndHD),HDM_DELETEITEM,(WPARAM)(int)(i),(LPARAM)0)
>
>  #define HDM_GETITEMA (HDM_FIRST+3)
>  #define HDM_GETITEMW (HDM_FIRST+11)
> @@ -2041,11 +2041,11 @@
>  #define LVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
>  #define ListView_GetUnicodeFormat(hwnd) 
> (WINBOOL)SNDMSG((hwnd),LVM_GETUNICODEFORMAT,0,0)
>  #define LVM_GETBKCOLOR (LVM_FIRST+0)
> -#define ListView_GetBkColor(hwnd) 
> (COLORREF)SNDMSG((hwnd),LVM_GETBKCOLOR,0,0L)
> +#define ListView_GetBkColor(hwnd) 
> (COLORREF)SNDMSG((hwnd),LVM_GETBKCOLOR,(WPARAM)0,(LPARAM)0)
>  #define LVM_SETBKCOLOR (LVM_FIRST+1)
>  #define ListView_SetBkColor(hwnd,clrBk) 
> (WINBOOL)SNDMSG((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
>  #define LVM_GETIMAGELIST (LVM_FIRST+2)
> -#define ListView_GetImageList(hwnd,iImageList) 
> (HIMAGELIST)SNDMSG((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L)
> +#define ListView_GetImageList(hwnd,iImageList) 
> (HIMAGELIST)SNDMSG((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),(LPARAM)0)
>
>  #define LVSIL_NORMAL 0
>  #define LVSIL_SMALL 1
> @@ -2055,7 +2055,7 @@
>  #define ListView_SetImageList(hwnd,himl,iImageList) 
> (HIMAGELIST)SNDMSG((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(HIMAGELIST)(himl))
>
>  #define LVM_GETITEMCOUNT (LVM_FIRST+4)
> -#define ListView_GetItemCount(hwnd) (int)SNDMSG((hwnd),LVM_GETITEMCOUNT,0,0L)
> +#define ListView_GetItemCount(hwnd) 
> (int)SNDMSG((hwnd),LVM_GETITEMCOUNT,(WPARAM)0,(LPARAM)0)
>
>  #define LVIF_TEXT 0x1
>  #define LVIF_IMAGE 0x2
> @@ -2128,8 +2128,8 @@
>
>  #define LVITEM_V1_SIZE __MINGW_NAME_AW_EXT(LVITEM,_V1_SIZE)
>
> -#define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
> -#define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
> +#define LPSTR_TEXTCALLBACKW ((LPWSTR)(INT_PTR)-1)
> +#define LPSTR_TEXTCALLBACKA ((LPSTR)(INT_PTR)-1)
>
>  #define LPSTR_TEXTCALLBACK __MINGW_NAME_AW(LPSTR_TEXTCALLBACK)
>
> @@ -2159,10 +2159,10 @@
>  #define ListView_InsertItem(hwnd,pitem) 
> (int)SNDMSG((hwnd),LVM_INSERTITEM,0,(LPARAM)(const LV_ITEM *)(pitem))
>
>  #define LVM_DELETEITEM (LVM_FIRST+8)
> -#define ListView_DeleteItem(hwnd,i) 
> (WINBOOL)SNDMSG((hwnd),LVM_DELETEITEM,(WPARAM)(int)(i),0L)
> +#define ListView_DeleteItem(hwnd,i) 
> (WINBOOL)SNDMSG((hwnd),LVM_DELETEITEM,(WPARAM)(int)(i),(LPARAM)0)
>
>  #define LVM_DELETEALLITEMS (LVM_FIRST+9)
> -#define ListView_DeleteAllItems(hwnd) 
> (WINBOOL)SNDMSG((hwnd),LVM_DELETEALLITEMS,0,0L)
> +#define ListView_DeleteAllItems(hwnd) 
> (WINBOOL)SNDMSG((hwnd),LVM_DELETEALLITEMS,(WPARAM)0,(LPARAM)0)
>
>  #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
>  #define ListView_GetCallbackMask(hwnd) 
> (WINBOOL)SNDMSG((hwnd),LVM_GETCALLBACKMASK,0,0)
> @@ -2280,17 +2280,17 @@
>  #define LVA_SNAPTOGRID 0x5
>
>  #define LVM_ARRANGE (LVM_FIRST+22)
> -#define ListView_Arrange(hwndLV,code) 
> (WINBOOL)SNDMSG((hwndLV),LVM_ARRANGE,(WPARAM)(UINT)(code),0L)
> +#define ListView_Arrange(hwndLV,code) 
> (WINBOOL)SNDMSG((hwndLV),LVM_ARRANGE,(WPARAM)(UINT)(code),(LPARAM)0)
>
>  #define LVM_EDITLABELA (LVM_FIRST+23)
>  #define LVM_EDITLABELW (LVM_FIRST+118)
>
>  #define LVM_EDITLABEL __MINGW_NAME_AW(LVM_EDITLABEL)
>
> -#define ListView_EditLabel(hwndLV,i) 
> (HWND)SNDMSG((hwndLV),LVM_EDITLABEL,(WPARAM)(int)(i),0L)
> +#define ListView_EditLabel(hwndLV,i) 
> (HWND)SNDMSG((hwndLV),LVM_EDITLABEL,(WPARAM)(int)(i),(LPARAM)0)
>
>  #define LVM_GETEDITCONTROL (LVM_FIRST+24)
> -#define ListView_GetEditControl(hwndLV) 
> (HWND)SNDMSG((hwndLV),LVM_GETEDITCONTROL,0,0L)
> +#define ListView_GetEditControl(hwndLV) 
> (HWND)SNDMSG((hwndLV),LVM_GETEDITCONTROL,(WPARAM)0,(LPARAM)0)
>
>  #define LV_COLUMNA LVCOLUMNA
>  #define LV_COLUMNW LVCOLUMNW
> @@ -2396,17 +2396,17 @@
>  #define ListView_SetColumnWidth(hwnd,iCol,cx) 
> (WINBOOL)SNDMSG((hwnd),LVM_SETCOLUMNWIDTH,(WPARAM)(int)(iCol),MAKELPARAM((cx),0))
>
>  #define LVM_GETHEADER (LVM_FIRST+31)
> -#define ListView_GetHeader(hwnd) (HWND)SNDMSG((hwnd),LVM_GETHEADER,0,0L)
> +#define ListView_GetHeader(hwnd) 
> (HWND)SNDMSG((hwnd),LVM_GETHEADER,(WPARAM)0,(LPARAM)0)
>  #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
>  #define ListView_CreateDragImage(hwnd,i,lpptUpLeft) 
> (HIMAGELIST)SNDMSG((hwnd),LVM_CREATEDRAGIMAGE,(WPARAM)(int)(i),(LPARAM)(LPPOINT)(lpptUpLeft))
>  #define LVM_GETVIEWRECT (LVM_FIRST+34)
>  #define ListView_GetViewRect(hwnd,prc) 
> (WINBOOL)SNDMSG((hwnd),LVM_GETVIEWRECT,0,(LPARAM)(RECT *)(prc))
>  #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
> -#define ListView_GetTextColor(hwnd) 
> (COLORREF)SNDMSG((hwnd),LVM_GETTEXTCOLOR,0,0L)
> +#define ListView_GetTextColor(hwnd) 
> (COLORREF)SNDMSG((hwnd),LVM_GETTEXTCOLOR,(WPARAM)0,(LPARAM)0)
>  #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
>  #define ListView_SetTextColor(hwnd,clrText) 
> (WINBOOL)SNDMSG((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrText))
>  #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
> -#define ListView_GetTextBkColor(hwnd) 
> (COLORREF)SNDMSG((hwnd),LVM_GETTEXTBKCOLOR,0,0L)
> +#define ListView_GetTextBkColor(hwnd) 
> (COLORREF)SNDMSG((hwnd),LVM_GETTEXTBKCOLOR,(WPARAM)0,(LPARAM)0)
>  #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
>  #define ListView_SetTextBkColor(hwnd,clrTextBk) 
> (WINBOOL)SNDMSG((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrTextBk))
>  #define LVM_GETTOPINDEX (LVM_FIRST+39)
> @@ -2416,7 +2416,7 @@
>  #define LVM_GETORIGIN (LVM_FIRST+41)
>  #define ListView_GetOrigin(hwndLV,ppt) 
> (WINBOOL)SNDMSG((hwndLV),LVM_GETORIGIN,(WPARAM)0,(LPARAM)(POINT *)(ppt))
>  #define LVM_UPDATE (LVM_FIRST+42)
> -#define ListView_Update(hwndLV,i) 
> (WINBOOL)SNDMSG((hwndLV),LVM_UPDATE,(WPARAM)(i),0L)
> +#define ListView_Update(hwndLV,i) 
> (WINBOOL)SNDMSG((hwndLV),LVM_UPDATE,(WPARAM)(i),(LPARAM)0)
>  #define LVM_SETITEMSTATE (LVM_FIRST+43)
>  #define ListView_SetItemState(hwndLV,i,data,mask) { LV_ITEM _ms_lvi; 
> _ms_lvi.stateMask = mask; _ms_lvi.state = data; 
> SNDMSG((hwndLV),LVM_SETITEMSTATE,(WPARAM)(i),(LPARAM)(LV_ITEM *)&_ms_lvi);}
>  #define ListView_SetCheckState(hwndLV,i,fCheck) 
> ListView_SetItemState(hwndLV,i,INDEXTOSTATEIMAGEMASK((fCheck)?2:1),LVIS_STATEIMAGEMASK)
> @@ -2454,10 +2454,10 @@
>  #define ListView_SetItemPosition32(hwndLV,i,x0,y0) { POINT ptNewPos; 
> ptNewPos.x = x0; ptNewPos.y = y0; 
> SNDMSG((hwndLV),LVM_SETITEMPOSITION32,(WPARAM)(int)(i),(LPARAM)&ptNewPos); }
>
>  #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
> -#define ListView_GetSelectedCount(hwndLV) 
> (UINT)SNDMSG((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
> +#define ListView_GetSelectedCount(hwndLV) 
> (UINT)SNDMSG((hwndLV),LVM_GETSELECTEDCOUNT,(WPARAM)0,(LPARAM)0)
>
>  #define LVM_GETITEMSPACING (LVM_FIRST+51)
> -#define ListView_GetItemSpacing(hwndLV,fSmall) 
> (DWORD)SNDMSG((hwndLV),LVM_GETITEMSPACING,fSmall,0L)
> +#define ListView_GetItemSpacing(hwndLV,fSmall) 
> (DWORD)SNDMSG((hwndLV),LVM_GETITEMSPACING,fSmall,(LPARAM)0)
>
>  #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
>  #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
> @@ -3689,13 +3689,13 @@
>  #define TCS_EX_REGISTERDROP 0x2
>
>  #define TCM_GETIMAGELIST (TCM_FIRST+2)
> -#define TabCtrl_GetImageList(hwnd) 
> (HIMAGELIST)SNDMSG((hwnd),TCM_GETIMAGELIST,0,0L)
> +#define TabCtrl_GetImageList(hwnd) 
> (HIMAGELIST)SNDMSG((hwnd),TCM_GETIMAGELIST,(WPARAM)0,(LPARAM)0)
>
>  #define TCM_SETIMAGELIST (TCM_FIRST+3)
>  #define TabCtrl_SetImageList(hwnd,himl) 
> (HIMAGELIST)SNDMSG((hwnd),TCM_SETIMAGELIST,0,(LPARAM)(HIMAGELIST)(himl))
>
>  #define TCM_GETITEMCOUNT (TCM_FIRST+4)
> -#define TabCtrl_GetItemCount(hwnd) (int)SNDMSG((hwnd),TCM_GETITEMCOUNT,0,0L)
> +#define TabCtrl_GetItemCount(hwnd) 
> (int)SNDMSG((hwnd),TCM_GETITEMCOUNT,(WPARAM)0,(LPARAM)0)
>
>  #define TCIF_TEXT 0x1
>  #define TCIF_IMAGE 0x2
> @@ -3780,10 +3780,10 @@
>  #define TabCtrl_InsertItem(hwnd,iItem,pitem) 
> (int)SNDMSG((hwnd),TCM_INSERTITEM,(WPARAM)(int)(iItem),(LPARAM)(const TC_ITEM 
> *)(pitem))
>
>  #define TCM_DELETEITEM (TCM_FIRST+8)
> -#define TabCtrl_DeleteItem(hwnd,i) 
> (WINBOOL)SNDMSG((hwnd),TCM_DELETEITEM,(WPARAM)(int)(i),0L)
> +#define TabCtrl_DeleteItem(hwnd,i) 
> (WINBOOL)SNDMSG((hwnd),TCM_DELETEITEM,(WPARAM)(int)(i),(LPARAM)0)
>
>  #define TCM_DELETEALLITEMS (TCM_FIRST+9)
> -#define TabCtrl_DeleteAllItems(hwnd) 
> (WINBOOL)SNDMSG((hwnd),TCM_DELETEALLITEMS,0,0L)
> +#define TabCtrl_DeleteAllItems(hwnd) 
> (WINBOOL)SNDMSG((hwnd),TCM_DELETEALLITEMS,(WPARAM)0,(LPARAM)0)
>
>  #define TCM_GETITEMRECT (TCM_FIRST+10)
>  #define TabCtrl_GetItemRect(hwnd,i,prc) 
> (WINBOOL)SNDMSG((hwnd),TCM_GETITEMRECT,(WPARAM)(int)(i),(LPARAM)(RECT *)(prc))
> @@ -3810,21 +3810,21 @@
>  #define TCM_HITTEST (TCM_FIRST+13)
>  #define TabCtrl_HitTest(hwndTC,pinfo) 
> (int)SNDMSG((hwndTC),TCM_HITTEST,0,(LPARAM)(TC_HITTESTINFO *)(pinfo))
>  #define TCM_SETITEMEXTRA (TCM_FIRST+14)
> -#define TabCtrl_SetItemExtra(hwndTC,cb) 
> (WINBOOL)SNDMSG((hwndTC),TCM_SETITEMEXTRA,(WPARAM)(cb),0L)
> +#define TabCtrl_SetItemExtra(hwndTC,cb) 
> (WINBOOL)SNDMSG((hwndTC),TCM_SETITEMEXTRA,(WPARAM)(cb),(LPARAM)0)
>  #define TCM_ADJUSTRECT (TCM_FIRST+40)
>  #define TabCtrl_AdjustRect(hwnd,bLarger,prc) 
> (int)SNDMSG(hwnd,TCM_ADJUSTRECT,(WPARAM)(WINBOOL)(bLarger),(LPARAM)(RECT 
> *)prc)
>  #define TCM_SETITEMSIZE (TCM_FIRST+41)
>  #define TabCtrl_SetItemSize(hwnd,x,y) 
> (DWORD)SNDMSG((hwnd),TCM_SETITEMSIZE,0,MAKELPARAM(x,y))
>  #define TCM_REMOVEIMAGE (TCM_FIRST+42)
> -#define TabCtrl_RemoveImage(hwnd,i) (void)SNDMSG((hwnd),TCM_REMOVEIMAGE,i,0L)
> +#define TabCtrl_RemoveImage(hwnd,i) 
> (void)SNDMSG((hwnd),TCM_REMOVEIMAGE,i,(LPARAM)0)
>  #define TCM_SETPADDING (TCM_FIRST+43)
>  #define TabCtrl_SetPadding(hwnd,cx,cy) 
> (void)SNDMSG((hwnd),TCM_SETPADDING,0,MAKELPARAM(cx,cy))
>  #define TCM_GETROWCOUNT (TCM_FIRST+44)
> -#define TabCtrl_GetRowCount(hwnd) (int)SNDMSG((hwnd),TCM_GETROWCOUNT,0,0L)
> +#define TabCtrl_GetRowCount(hwnd) 
> (int)SNDMSG((hwnd),TCM_GETROWCOUNT,(WPARAM)0,(LPARAM)0)
>  #define TCM_GETTOOLTIPS (TCM_FIRST+45)
> -#define TabCtrl_GetToolTips(hwnd) (HWND)SNDMSG((hwnd),TCM_GETTOOLTIPS,0,0L)
> +#define TabCtrl_GetToolTips(hwnd) 
> (HWND)SNDMSG((hwnd),TCM_GETTOOLTIPS,(WPARAM)0,(LPARAM)0)
>  #define TCM_SETTOOLTIPS (TCM_FIRST+46)
> -#define TabCtrl_SetToolTips(hwnd,hwndTT) 
> (void)SNDMSG((hwnd),TCM_SETTOOLTIPS,(WPARAM)(hwndTT),0L)
> +#define TabCtrl_SetToolTips(hwnd,hwndTT) 
> (void)SNDMSG((hwnd),TCM_SETTOOLTIPS,(WPARAM)(hwndTT),(LPARAM)0)
>  #define TCM_GETCURFOCUS (TCM_FIRST+47)
>  #define TabCtrl_GetCurFocus(hwnd) (int)SNDMSG((hwnd),TCM_GETCURFOCUS,0,0)
>  #define TCM_SETCURFOCUS (TCM_FIRST+48)
> @@ -3912,9 +3912,9 @@
>  #define MCM_SETCURSEL (MCM_FIRST+2)
>  #define MonthCal_SetCurSel(hmc,pst) 
> (WINBOOL)SNDMSG(hmc,MCM_SETCURSEL,0,(LPARAM)(pst))
>  #define MCM_GETMAXSELCOUNT (MCM_FIRST+3)
> -#define MonthCal_GetMaxSelCount(hmc) 
> (DWORD)SNDMSG(hmc,MCM_GETMAXSELCOUNT,0,0L)
> +#define MonthCal_GetMaxSelCount(hmc) 
> (DWORD)SNDMSG(hmc,MCM_GETMAXSELCOUNT,(WPARAM)0,(LPARAM)0)
>  #define MCM_SETMAXSELCOUNT (MCM_FIRST+4)
> -#define MonthCal_SetMaxSelCount(hmc,n) 
> (WINBOOL)SNDMSG(hmc,MCM_SETMAXSELCOUNT,(WPARAM)(n),0L)
> +#define MonthCal_SetMaxSelCount(hmc,n) 
> (WINBOOL)SNDMSG(hmc,MCM_SETMAXSELCOUNT,(WPARAM)(n),(LPARAM)0)
>  #define MCM_GETSELRANGE (MCM_FIRST+5)
>  #define MonthCal_GetSelRange(hmc,rgst) 
> SNDMSG(hmc,MCM_GETSELRANGE,0,(LPARAM)(rgst))
>  #define MCM_SETSELRANGE (MCM_FIRST+6)
> Index: winioctl.h
> ===================================================================
> --- winioctl.h  (revision 5260)
> +++ winioctl.h  (working copy)
> @@ -170,7 +170,7 @@
>  #define DeviceDsmAction_Trim 1
>  #define DeviceDsmAction_Notification (2 | DeviceDsmActionFlag_NonDestructive)
>
> -#define IsDsmActionNonDestructive(x) ((BOOLEAN)(((x) & 
> DeviceDsmActionFlag_NonDestructive) != 0L))
> +#define IsDsmActionNonDestructive(x) ((BOOLEAN)(!!((x) & 
> DeviceDsmActionFlag_NonDestructive)))
>
>  #define DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE 0x00000001L
>
> Index: dxtmpl.h
> ===================================================================
> --- dxtmpl.h    (revision 5260)
> +++ dxtmpl.h    (working copy)
> @@ -20,7 +20,7 @@
>  typedef void *DXLISTPOS;
>  typedef DWORD DXLISTHANDLE;
>
> -#define DX_BEFORE_START_POSITION ((void*)-1L)
> +#define DX_BEFORE_START_POSITION ((void*)(INT_PTR)-1)
>
>  #ifndef __CRT__NO_INLINE
>  __CRT_INLINE WINBOOL DXIsValidAddress(const void *lp,UINT nBytes,WINBOOL 
> bReadWrite) { return (lp!=NULL && !IsBadReadPtr(lp,nBytes) && (!bReadWrite || 
> !IsBadWritePtr((LPVOID)lp,nBytes))); }
> Index: wininet.h
> ===================================================================
> --- wininet.h   (revision 5260)
> +++ wininet.h   (working copy)
> @@ -648,7 +648,7 @@
>      WINBOOL fAllowSession;
>    } CookieDecision;
>
> -#define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)(-1L))
> +#define INTERNET_INVALID_STATUS_CALLBACK 
> ((INTERNET_STATUS_CALLBACK)(INT_PTR)-1)
>
>  #define FTP_TRANSFER_TYPE_UNKNOWN 0x00000000
>  #define FTP_TRANSFER_TYPE_ASCII 0x00000001
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public



-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to