Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f67ef321
Commit
f67ef321
authored
Nov 18, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36d8147c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
button.c
dlls/comctl32/button.c
+1
-1
commctrl.c
dlls/comctl32/commctrl.c
+6
-6
listbox.c
dlls/comctl32/listbox.c
+2
-2
listview.c
dlls/comctl32/listview.c
+1
-1
status.c
dlls/comctl32/status.c
+2
-2
trackbar.c
dlls/comctl32/trackbar.c
+2
-2
No files found.
dlls/comctl32/button.c
View file @
f67ef321
...
...
@@ -2427,7 +2427,7 @@ static void draw_split_button_dropdown_glyph(const BUTTON_INFO *infoPtr, HDC hdc
/* infoPtr->glyph is a character code from Marlett */
HFONT
font
,
old_font
;
LOGFONTW
logfont
=
{
0
,
0
,
0
,
0
,
FW_NORMAL
,
0
,
0
,
0
,
SYMBOL_CHARSET
,
0
,
0
,
0
,
0
,
{
'M'
,
'a'
,
'r'
,
'l'
,
'e'
,
't'
,
't'
,
0
}
};
L"Marlett"
};
if
(
infoPtr
->
glyph_size
.
cy
)
{
/* BCSS_STRETCH preserves aspect ratio, uses minimum as size */
...
...
dlls/comctl32/commctrl.c
View file @
f67ef321
...
...
@@ -124,12 +124,12 @@ BOOL WINAPI RegisterClassNameW(const WCHAR *class)
}
classes
[]
=
{
{
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
0
},
BUTTON_Register
},
{
{
'C'
,
'o'
,
'm'
,
'b'
,
'o'
,
'B'
,
'o'
,
'x'
,
0
},
COMBO_Register
},
{
{
'C'
,
'o'
,
'm'
,
'b'
,
'o'
,
'L'
,
'B'
,
'o'
,
'x'
,
0
}
,
COMBOLBOX_Register
},
{
{
'E'
,
'd'
,
'i'
,
't'
,
0
},
EDIT_Register
},
{
{
'L'
,
'i'
,
's'
,
't'
,
'B'
,
'o'
,
'x'
,
0
},
LISTBOX_Register
},
{
{
'S'
,
't'
,
'a'
,
't'
,
'i'
,
'c'
,
0
},
STATIC_Register
},
{
L"Button"
,
BUTTON_Register
},
{
L"ComboBox"
,
COMBO_Register
},
{
L"ComboLBox"
,
COMBOLBOX_Register
},
{
L"Edit"
,
EDIT_Register
},
{
L"ListBox"
,
LISTBOX_Register
},
{
L"Static"
,
STATIC_Register
},
};
int
min
=
0
,
max
=
ARRAY_SIZE
(
classes
)
-
1
;
...
...
dlls/comctl32/listbox.c
View file @
f67ef321
...
...
@@ -1919,8 +1919,8 @@ static LRESULT LISTBOX_Directory( LB_DESCR *descr, UINT attrib,
/* scan drives */
if
(
attrib
&
DDL_DRIVES
)
{
WCHAR
buffer
[]
=
{
'['
,
'-'
,
'a'
,
'-'
,
']'
,
0
}
;
WCHAR
root
[]
=
{
'A'
,
':'
,
'\\'
,
0
}
;
WCHAR
buffer
[]
=
L"[-a-]"
;
WCHAR
root
[]
=
L"A:
\\
"
;
int
drive
;
for
(
drive
=
0
;
drive
<
26
;
drive
++
,
buffer
[
2
]
++
,
root
[
0
]
++
)
{
...
...
dlls/comctl32/listview.c
View file @
f67ef321
...
...
@@ -4731,7 +4731,7 @@ static void LISTVIEW_DrawItemPart(LISTVIEW_INFO *infoPtr, LVITEMW *item, const N
static
BOOL
LISTVIEW_DrawItem
(
LISTVIEW_INFO
*
infoPtr
,
HDC
hdc
,
INT
nItem
,
ITERATOR
*
subitems
,
POINT
pos
,
DWORD
cdmode
)
{
WCHAR
szDispText
[
DISP_TEXT_SIZE
]
=
{
'\0'
};
static
WCHAR
callbackW
[]
=
{
'('
,
'c'
,
'a'
,
'l'
,
'l'
,
'b'
,
'a'
,
'c'
,
'k'
,
')'
,
0
}
;
static
WCHAR
callbackW
[]
=
L"(callback)"
;
DWORD
cdsubitemmode
=
CDRF_DODEFAULT
;
RECT
*
focus
,
rcBox
;
NMLVCUSTOMDRAW
nmlvcd
;
...
...
dlls/comctl32/status.c
View file @
f67ef321
...
...
@@ -657,12 +657,12 @@ STATUSBAR_SetParts (STATUS_INFO *infoPtr, INT count, LPINT parts)
if
(
infoPtr
->
hwndToolTip
)
{
INT
nTipCount
;
TTTOOLINFOW
ti
;
WCHAR
wEmpty
=
0
;
WCHAR
wEmpty
[]
=
L""
;
ZeroMemory
(
&
ti
,
sizeof
(
TTTOOLINFOW
));
ti
.
cbSize
=
sizeof
(
TTTOOLINFOW
);
ti
.
hwnd
=
infoPtr
->
Self
;
ti
.
lpszText
=
&
wEmpty
;
ti
.
lpszText
=
wEmpty
;
nTipCount
=
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_GETTOOLCOUNT
,
0
,
0
);
if
(
nTipCount
<
infoPtr
->
numParts
)
{
...
...
dlls/comctl32/trackbar.c
View file @
f67ef321
...
...
@@ -1539,12 +1539,12 @@ TRACKBAR_Create (HWND hwnd, const CREATESTRUCTW *lpcs)
if
(
infoPtr
->
hwndToolTip
)
{
TTTOOLINFOW
ti
;
WCHAR
wEmpty
=
0
;
WCHAR
wEmpty
[]
=
L""
;
ZeroMemory
(
&
ti
,
sizeof
(
ti
));
ti
.
cbSize
=
sizeof
(
ti
);
ti
.
uFlags
=
TTF_IDISHWND
|
TTF_TRACK
|
TTF_ABSOLUTE
;
ti
.
hwnd
=
hwnd
;
ti
.
lpszText
=
&
wEmpty
;
ti
.
lpszText
=
wEmpty
;
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_ADDTOOLW
,
0
,
(
LPARAM
)
&
ti
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment