Nikolay Sivov : comctl32/rebar: Use wide string literals.
Alexandre Julliard
julliard at winehq.org
Fri May 1 16:17:51 CDT 2020
Module: wine
Branch: master
Commit: 4a0c440d30e6a089b0a6ba5bd297c35c2004b9a1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4a0c440d30e6a089b0a6ba5bd297c35c2004b9a1
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri May 1 18:42:01 2020 +0300
comctl32/rebar: Use wide string literals.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/rebar.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index 6bca2f1818..af35008b69 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -302,8 +302,7 @@ static const char * const band_maskname[] = {
"RBBIM_CHEVRONSTATE", /* 0x00002000 */
NULL };
-
-static const WCHAR themeClass[] = { 'R','e','b','a','r',0 };
+static const WCHAR themeClass[] = L"Rebar";
static CHAR *
REBAR_FmtStyle(char *buffer, UINT style)
@@ -1010,7 +1009,6 @@ REBAR_ForceResize (REBAR_INFO *infoPtr)
static VOID
REBAR_MoveChildWindows (const REBAR_INFO *infoPtr, UINT start, UINT endplus)
{
- static const WCHAR strComboBox[] = { 'C','o','m','b','o','B','o','x',0 };
REBAR_BAND *lpBand;
WCHAR szClassName[40];
UINT i;
@@ -1047,7 +1045,7 @@ REBAR_MoveChildWindows (const REBAR_INFO *infoPtr, UINT start, UINT endplus)
}
GetClassNameW (lpBand->hwndChild, szClassName, ARRAY_SIZE(szClassName));
- if (!lstrcmpW (szClassName, strComboBox) ||
+ if (!lstrcmpW (szClassName, WC_COMBOBOXW) ||
!lstrcmpW (szClassName, WC_COMBOBOXEXW)) {
INT nEditHeight, yPos;
RECT rc;
More information about the wine-cvs
mailing list