Fix WM_NOTIFYFORMAT handling.

This commit is contained in:
Dimitrie O. Paun 2002-04-23 19:27:10 +00:00 committed by Alexandre Julliard
parent e569b73d5b
commit 55f9b75163
1 changed files with 1 additions and 6 deletions

View File

@ -1556,14 +1556,9 @@ static LRESULT COMBOEX_NotifyFormat (COMBOEX_INFO *infoPtr, LPARAM lParam)
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;
}