USER32: win16 applications should not see long filenames returned from dialog control (try 4) (RESEND)
Alex Villacís Lasso
a_villacis at palosanto.com
Wed Nov 21 09:37:55 CST 2007
Re-sending patch on the assumption it has been misplaced.
Legacy Win16 applications display file/directory selection listboxes and
expect to receive a short name from the control. Currently the control
returns a long name instead, which causes undefined behavior in Win16
apps. For example, ProImage for Windows 1.10 from ProLab Tech (a Win16
app) crashes after receiving this long filename. The attached patch
attempts to fix this by converting the about-to-be-returned name to a
short name when called from the 16-bit wrapper.
Changelog:
* Win16 applications should not see long filenames. Change directory
listbox to return short names when called from the 16-bit wrappers.
--
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-user32-dialog-no-longname-for-win16-try4.patch
Type: text/x-patch
Size: 1472 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071121/59601a22/attachment.bin
More information about the wine-patches
mailing list