user32: Store the builtin class names in Unicode.
diff --git a/dlls/user32/button.c b/dlls/user32/button.c
index b80d78a..46940f0 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -159,9 +159,10 @@
/*********************************************************************
* button class descriptor
*/
+static const WCHAR buttonW[] = {'B','u','t','t','o','n',0};
const struct builtin_class_descr BUTTON_builtin_class =
{
- "Button", /* name */
+ buttonW, /* name */
CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
ButtonWndProcA, /* procA */
ButtonWndProcW, /* procW */
diff --git a/dlls/user32/class.c b/dlls/user32/class.c
index a0be005..0f2e8a8 100644
--- a/dlls/user32/class.c
+++ b/dlls/user32/class.c
@@ -371,7 +371,7 @@
ATOM atom;
CLASS *classPtr;
- if (!(atom = GlobalAddAtomA( descr->name ))) return 0;
+ if (!(atom = GlobalAddAtomW( descr->name ))) return 0;
if (!(classPtr = CLASS_RegisterClass( atom, user32_module, FALSE,
descr->style, 0, descr->extra ))) return 0;
diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c
index 1e801a3..4279297 100644
--- a/dlls/user32/combo.c
+++ b/dlls/user32/combo.c
@@ -93,9 +93,10 @@
/*********************************************************************
* combo class descriptor
*/
+static const WCHAR comboboxW[] = {'C','o','m','b','o','B','o','x',0};
const struct builtin_class_descr COMBO_builtin_class =
{
- "ComboBox", /* name */
+ comboboxW, /* name */
CS_PARENTDC | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW, /* style */
ComboWndProcA, /* procA */
ComboWndProcW, /* procW */
diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h
index 594b665..d52c914 100644
--- a/dlls/user32/controls.h
+++ b/dlls/user32/controls.h
@@ -34,7 +34,7 @@
/* Built-in class descriptor */
struct builtin_class_descr
{
- LPCSTR name; /* class name */
+ LPCWSTR name; /* class name */
UINT style; /* class style */
WNDPROC procA; /* ASCII window procedure */
WNDPROC procW; /* Unicode window procedure */
diff --git a/dlls/user32/desktop.c b/dlls/user32/desktop.c
index 37774b8..ad4740b 100644
--- a/dlls/user32/desktop.c
+++ b/dlls/user32/desktop.c
@@ -46,7 +46,7 @@
*/
const struct builtin_class_descr DESKTOP_builtin_class =
{
- (LPCSTR)DESKTOP_CLASS_ATOM, /* name */
+ (LPCWSTR)DESKTOP_CLASS_ATOM, /* name */
CS_DBLCLKS, /* style */
NULL, /* procA (winproc is Unicode only) */
DesktopWndProc, /* procW */
diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index d8cf63b..40ac35b 100644
--- a/dlls/user32/dialog.c
+++ b/dlls/user32/dialog.c
@@ -95,7 +95,7 @@
*/
const struct builtin_class_descr DIALOG_builtin_class =
{
- (LPCSTR)DIALOG_CLASS_ATOM, /* name */
+ (LPCWSTR)DIALOG_CLASS_ATOM, /* name */
CS_SAVEBITS | CS_DBLCLKS, /* style */
DefDlgProcA, /* procA */
DefDlgProcW, /* procW */
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index ee7e7a4..958f4fe 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -294,9 +294,10 @@
/*********************************************************************
* edit class descriptor
*/
+static const WCHAR editW[] = {'E','d','i','t',0};
const struct builtin_class_descr EDIT_builtin_class =
{
- "Edit", /* name */
+ editW, /* name */
CS_DBLCLKS | CS_PARENTDC, /* style */
EditWndProcA, /* procA */
EditWndProcW, /* procW */
diff --git a/dlls/user32/icontitle.c b/dlls/user32/icontitle.c
index 7a185c0..d6995ba 100644
--- a/dlls/user32/icontitle.c
+++ b/dlls/user32/icontitle.c
@@ -45,7 +45,7 @@
*/
const struct builtin_class_descr ICONTITLE_builtin_class =
{
- (LPCSTR)ICONTITLE_CLASS_ATOM, /* name */
+ (LPCWSTR)ICONTITLE_CLASS_ATOM, /* name */
0, /* style */
NULL, /* procA (winproc is Unicode only) */
IconTitleWndProc, /* procW */
diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index 0a39582..7ec97dd 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -136,9 +136,10 @@
/*********************************************************************
* listbox class descriptor
*/
+static const WCHAR listboxW[] = {'L','i','s','t','B','o','x',0};
const struct builtin_class_descr LISTBOX_builtin_class =
{
- "ListBox", /* name */
+ listboxW, /* name */
CS_DBLCLKS /*| CS_PARENTDC*/, /* style */
ListBoxWndProcA, /* procA */
ListBoxWndProcW, /* procW */
@@ -151,9 +152,10 @@
/*********************************************************************
* combolbox class descriptor
*/
+static const WCHAR combolboxW[] = {'C','o','m','b','o','L','B','o','x',0};
const struct builtin_class_descr COMBOLBOX_builtin_class =
{
- "ComboLBox", /* name */
+ combolboxW, /* name */
CS_DBLCLKS | CS_SAVEBITS, /* style */
ListBoxWndProcA, /* procA */
ListBoxWndProcW, /* procW */
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c
index 1fc2fbd..bad5519 100644
--- a/dlls/user32/mdi.c
+++ b/dlls/user32/mdi.c
@@ -184,9 +184,10 @@
/*********************************************************************
* MDIClient class descriptor
*/
+static const WCHAR mdiclientW[] = {'M','D','I','C','l','i','e','n','t',0};
const struct builtin_class_descr MDICLIENT_builtin_class =
{
- "MDIClient", /* name */
+ mdiclientW, /* name */
0, /* style */
MDIClientWndProcA, /* procA */
MDIClientWndProcW, /* procW */
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index 3a75005..8e9a631 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -189,7 +189,7 @@
*/
const struct builtin_class_descr MENU_builtin_class =
{
- (LPCSTR)POPUPMENU_CLASS_ATOM, /* name */
+ (LPCWSTR)POPUPMENU_CLASS_ATOM, /* name */
CS_DROPSHADOW | CS_SAVEBITS | CS_DBLCLKS, /* style */
NULL, /* procA (winproc is Unicode only) */
PopupMenuWndProc, /* procW */
diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c
index afd961e..ec2fe13 100644
--- a/dlls/user32/scroll.c
+++ b/dlls/user32/scroll.c
@@ -114,9 +114,10 @@
/*********************************************************************
* scrollbar class descriptor
*/
+static const WCHAR scrollbarW[] = {'S','c','r','o','l','l','B','a','r',0};
const struct builtin_class_descr SCROLL_builtin_class =
{
- "ScrollBar", /* name */
+ scrollbarW, /* name */
CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
NULL, /* procA (winproc is Unicode only) */
ScrollBarWndProc, /* procW */
diff --git a/dlls/user32/static.c b/dlls/user32/static.c
index bb6abfb..df19875 100644
--- a/dlls/user32/static.c
+++ b/dlls/user32/static.c
@@ -100,9 +100,10 @@
/*********************************************************************
* static class descriptor
*/
+static const WCHAR staticW[] = {'S','t','a','t','i','c',0};
const struct builtin_class_descr STATIC_builtin_class =
{
- "Static", /* name */
+ staticW, /* name */
CS_DBLCLKS | CS_PARENTDC, /* style */
StaticWndProcA, /* procA */
StaticWndProcW, /* procW */