ComboEx bug fix
Dimitrie O. Paun
dpaun at rogers.com
Mon Apr 22 17:50:59 CDT 2002
ChangeLog:
Fix WM_NOTIFYFORMAT handling.
Index: dlls/comctl32/comboex.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/comboex.c,v
retrieving revision 1.44
diff -u -r1.44 comboex.c
--- dlls/comctl32/comboex.c 11 Apr 2002 17:33:47 -0000 1.44
+++ dlls/comctl32/comboex.c 11 Apr 2002 18:07:41 -0000
@@ -1556,14 +1556,9 @@
if (lParam == NF_REQUERY) {
INT i = SendMessageW(GetParent (infoPtr->hwndSelf),
WM_NOTIFYFORMAT, infoPtr->hwndSelf, NF_QUERY);
- if ((i < NFR_ANSI) || (i > NFR_UNICODE)) {
- ERR("wrong response to WM_NOTIFYFORMAT (%d), set to ANSI\n", i);
- i = NFR_ANSI;
- }
infoPtr->NtfUnicode = (i == NFR_UNICODE) ? 1 : 0;
- return (LRESULT)i;
}
- return (LRESULT)(infoPtr->unicode ? NFR_UNICODE : NFR_ANSI);
+ return infoPtr->NtfUnicode ? NFR_UNICODE : NFR_ANSI;
}
--
Dimi.
More information about the wine-patches
mailing list