bug fix: Prevented strlen(NULL) in PRINTDLG_CreateDevNames()
stefan at codeweavers.com
Sun Nov 25 09:48:37 CST 2007
Am Sonntag, 25. November 2007 12:35:36 schrieb Jorma Laaksonen:
> wine-0.9.49 (as well as many earlier versions) seems to crash when
> PRINTDLG_CreateDevNames() is for some reason called with DeviceDriverName
> equal to NULL. The real cause of this problem might be somewhere else
> where the NULL is assigned, but this simple fix prevents NULL being
> passed to strlen().
If you suspect that the real problem is somewhere else, it is recommended to
write a test case to see how Windows deals with this situation. Windows could
return an error if the device driver name is NULL. If Windows crashes as
well, your patch would only hide a bug instead of fixing it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071125/67c4dfa9/attachment.pgp
More information about the wine-patches