USER32: win16 applications should not see long filenames returned from dialog control (try 2)
Alex Villacís Lasso
a_villacis at palosanto.com
Sat Nov 3 11:36:31 CDT 2007
> Alex wrote:
>> Legacy Win16 applications display file/directory selection listboxes and
>> expect to receive a short name from the control....
>>The attached patch attempts to fix this
>>by converting the about-to-be-returned name to a short name if the
>>windows version is not at least Win95
> How about converting to a short name in the win16 wrapper
> code instead?
Agreed. I did not search for the 16-bit wrappers before. Thanks.
Here it goes again:
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 when
called from the 16-bit wrapper.
* Win16 applications should not see long filenames. Change directory listbox
to return short names when called from the 16-bit wrappers.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 976 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071103/b1b5e9cc/attachment.bin
More information about the wine-patches