[PATCH 4/7] comctl32/rebar: Use wide string literals.
Nikolay Sivov
nsivov at codeweavers.com
Fri May 1 10:42:01 CDT 2020
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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;
--
2.26.2
More information about the wine-devel
mailing list