USER32: win16 applications should not see long filenames returned from dialog control

Alex Villacís Lasso a_villacis at palosanto.com
Fri Nov 2 16:31:36 CDT 2007


Legacy Win16 applications display file/directory selection listboxes and
expect to receive a short name from the control. Currently the control
provides 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 if the expected
windows version is not at least Win95. If there is a more elegant way for
this,
please indicate it.

Changelog:
* Win16 applications should not see long filenames. Change directory listbox
  to return short names for an expected Windows version less than 4.0 .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-user32-dialog-no-longname-for-win16.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071102/1cc88f54/attachment.bin 


More information about the wine-patches mailing list