Alexandre Julliard : ntdll: Fixed a compiler warning for size_t/ unsigned int mismatch.

Alexandre Julliard julliard at
Sun Mar 11 14:36:34 CDT 2007

Francois Gouget <fgouget at> writes:

> Even so I think we can get a problem for the Win64 case: on Windows the 
> size parameter will still be 32bits since it's an 'unsigned int'. So 
> 64bit Windows applications will generate code that passes a 32bit size 
> to _lfind(). But Wine's implementation will expect the size parameter to 
> be 64bit since it's a size_t (which is 64bits in both Windows and 
> Unix) and thus it will try to pop too much stuff off the stack.

Parameters are always 64-bit on a 64-bit platform (and they are
usually passed by registers anyway...)

Alexandre Julliard
julliard at

More information about the wine-devel mailing list