Fix Winproc doing improper Unicode <=> ANSI conversion

mehmet yasar myasar at free.fr
Fri Mar 8 05:02:39 CST 2002


Hi all,

I was trying to fix the crash with VisualC++ 6 IDE when opening
the Tools/Options/Format dialogbox and I have found that
WINPROC_MapMsg32ATo32W was converting an lparam sent by
CB_FINDSTRINGEXACT to Unicode.

This is not correct since lparam is not always a string and may
be a DWORD. Now we are checking this before doing conversion.

I've also found and fixed similar buggy behavior with :
CB_FINDSTRING
CB_SELECTSTRING
LB_FINDSTRING
LB_FINDSTRINGEXACT
LB_SELECTSTRING

BTW this patch modifies these functions too :
WINPROC_UnmapMsg32ATo32W
WINPROC_MapMsg32WTo32A
WINPROC_UnmapMsg32WTo32A

Mehmet YASAR


-------------- next part --------------
A non-text attachment was scrubbed...
Name: diffwinproc.gz
Type: application/gzip
Size: 601 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020308/a53d9af1/diffwinproc.bin


More information about the wine-patches mailing list