Francois Gouget fgouget@free.fr 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...)