From 2bd02f9aae8b6d15a94ab80e02e2f23a415feda7 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 4 May 2020 14:11:59 +0300 Subject: [PATCH] comctl32/tab: Use wide string literals. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/comctl32/tab.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index f8a54935ca3..3bb5310d1f3 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -152,7 +152,7 @@ typedef struct #define TAB_HOTTRACK_TIMER 1 #define TAB_HOTTRACK_TIMER_INTERVAL 100 /* milliseconds */ -static const WCHAR themeClass[] = { 'T','a','b',0 }; +static const WCHAR themeClass[] = L"Tab"; static inline TAB_ITEM* TAB_GetItem(const TAB_INFO *infoPtr, INT i) { @@ -1013,7 +1013,6 @@ static void TAB_SetupScrolling( TAB_INFO* infoPtr, const RECT* clientRect) { - static const WCHAR emptyW[] = { 0 }; INT maxRange = 0; if (infoPtr->needsScrolling) @@ -1044,7 +1043,7 @@ static void TAB_SetupScrolling( */ if (infoPtr->hwndUpDown==0) { - infoPtr->hwndUpDown = CreateWindowW(UPDOWN_CLASSW, emptyW, + infoPtr->hwndUpDown = CreateWindowW(UPDOWN_CLASSW, L"", WS_VISIBLE | WS_CHILD | UDS_HORZ, controlPos.left, controlPos.top, controlPos.right - controlPos.left,