comctl32: header: Correct WM_[GS]ETUNICODEFORMAT.

This commit is contained in:
Mikołaj Zalewski 2006-04-18 19:44:09 +02:00 committed by Alexandre Julliard
parent 3a94011ab6
commit 7a7f80e9d1
1 changed files with 3 additions and 3 deletions

View File

@ -947,7 +947,7 @@ inline static LRESULT
HEADER_GetUnicodeFormat (HWND hwnd)
{
HEADER_INFO *infoPtr = HEADER_GetInfoPtr (hwnd);
return infoPtr->bUnicode;
return (infoPtr->nNotifyFormat == NFR_UNICODE);
}
@ -1259,9 +1259,9 @@ inline static LRESULT
HEADER_SetUnicodeFormat (HWND hwnd, WPARAM wParam)
{
HEADER_INFO *infoPtr = HEADER_GetInfoPtr (hwnd);
BOOL bTemp = infoPtr->bUnicode;
BOOL bTemp = (infoPtr->nNotifyFormat == NFR_UNICODE);
infoPtr->bUnicode = (BOOL)wParam;
infoPtr->nNotifyFormat = ((BOOL)wParam ? NFR_UNICODE : NFR_ANSI);
return bTemp;
}