comdlg32: Fix NULL lpstrFile uses in FILEDLG95_OnOpen

Bruno Jesus 00cpxxx at
Thu Jun 14 22:51:34 CDT 2012

Currently wine will crash if during a common dialog operation
lpstrFile == NULL && nMaxFile == 0.
Also it's possible to crash wine using a bogus input by setting
nMaxFile > 0 together with a lpstrFile == NULL.
The second crash is not present in the unicode version of the function
since it does not rely on the struct field lpstrFile as the ascii
version does.

Fixes bug #17229.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix_null_lpstrFile_uses_in_FILEDLG95_OnOpen.patch
Type: application/octet-stream
Size: 6277 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list