COMDLG32: fix another regresion in 3.1-style file dialog from LB_DIR fix

Alex Villací­s Lasso a_villacis at
Thu Dec 20 10:54:20 CST 2007

This patch fixes another regression caused by the fix to LB_DIR to 
return -1 when no files match the wildcard (validated by tests). The 
Wine 3.1-style file open/save dialogs assumed LB_ERR is a fatal error 
and stop. The patch removes this assumption.

This one should really fix bug #10809. :-)

* LB_DIR can legitimately return -1 when no files match the wildcard, so 
it is not an error. Do not treat it as such.

perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-comdlg32-filedlg32-fix-ScanDir-regression.patch
Type: text/x-patch
Size: 530 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list