user32/tests: Use 'start' and 'end' variables in test comparisons

Dmitry Timoshkov dmitry at baikal.ru
Thu Dec 17 05:26:53 CST 2015


Hugh McMaster <hugh.mcmaster at outlook.com> wrote:

> > Hugh McMaster wrote:
> > 
> >> -    INT start,end;
> >> +    unsigned short start, end;
> > 
> > This can't work.
> 
> In this case it does - but it is a technicality.
> 
> MSDN says typedef unsigned short WORD; but I should have used unsigned int here, as we cast to WPARAM / UINT_PTR.

It doesn't matter what MSDN says or to what the code does the cast to.
What matters is what the other side does with the passed in pointers.

-- 
Dmitry.



More information about the wine-devel mailing list