lstrlen(A/W) patch

Mike McCormack mike at codeweavers.com
Tue Jun 6 11:03:09 CDT 2006


Clinton Stimpson wrote:

> The following patch will fix the crash.
> MSDN documentation says "*lstrlen* assumes that /lpString/ is a 
> null-terminated string, or NULL"

The inline lstrlenW is used only internally by Wine code, and we want it 
to crash when passed a NULL pointer.  In this case, you should fix the 
Wine code calling lstrlenW to not use a NULL pointer.

Mike



More information about the wine-devel mailing list