Commit 7a7f80e9 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

comctl32: header: Correct WM_[GS]ETUNICODEFORMAT.

parent 3a94011a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment