Module: wine Branch: refs/heads/master Commit: 7a7f80e9d100bb3e7837c7cac8b45740c16098a1 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7a7f80e9d100bb3e7837c7ca...
Author: Mikołaj Zalewski mikolaj@zalewski.pl Date: Tue Apr 18 19:44:09 2006 +0200
comctl32: header: Correct WM_[GS]ETUNICODEFORMAT.
---
dlls/comctl32/header.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index ed235e8..d80441b 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -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; }