comctl32/listview: fix icon spacing calculation [try 2]
Daniel Jelinski
djelinski1 at gmail.com
Mon Jan 14 15:15:47 CST 2013
2013/1/14 Nikolay Sivov <bunglehead at gmail.com>:
> On 1/15/2013 00:53, Daniel Jelinski wrote:
>
>> + if(lParam == -1)
>> + return LISTVIEW_SetIconSpacing(infoPtr, -1, -1);
>> + return LISTVIEW_SetIconSpacing(infoPtr, LOWORD(lParam),
>> HIWORD(lParam));
>
> Why do you need to handle this case specially? If it's -1 for 64bit comctl32
> it should give you the same values with HIWORD/LOWORD as it does for 32bit.
On 64bit the behavior with lParam=0xFFFFFFFF is different from that
with lParam=-1. HIWORD/LOWORD values are the same, so without this
special case they would behave the same way.
More information about the wine-devel
mailing list