Nikolay Sivov : comctl32/tab: Use wide string literals.
Alexandre Julliard
julliard at winehq.org
Mon May 4 15:49:17 CDT 2020
Module: wine
Branch: master
Commit: 2bd02f9aae8b6d15a94ab80e02e2f23a415feda7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2bd02f9aae8b6d15a94ab80e02e2f23a415feda7
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon May 4 14:11:59 2020 +0300
comctl32/tab: Use wide string literals.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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,
More information about the wine-cvs
mailing list