[PATCH 3/4] comctl32/tab: Use wide string literals.

Nikolay Sivov nsivov at codeweavers.com
Mon May 4 06:11:59 CDT 2020


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 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 f8a54935ca..3bb5310d1f 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,
-- 
2.26.2




More information about the wine-devel mailing list