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
585f863c
Commit
585f863c
authored
Jun 21, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Do not use wide character constants.
parent
717cccb5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
commctrl.c
dlls/comctl32/commctrl.c
+2
-2
string.c
dlls/comctl32/string.c
+2
-2
tooltips.c
dlls/comctl32/tooltips.c
+3
-3
No files found.
dlls/comctl32/commctrl.c
View file @
585f863c
...
...
@@ -442,10 +442,10 @@ void WINAPI DrawStatusTextW (HDC hdc, LPCRECT lprc, LPCWSTR text, UINT style)
if
(
text
)
{
int
oldbkmode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
UINT
align
=
DT_LEFT
;
if
(
*
text
==
L
'\t'
)
{
if
(
*
text
==
'\t'
)
{
text
++
;
align
=
DT_CENTER
;
if
(
*
text
==
L
'\t'
)
{
if
(
*
text
==
'\t'
)
{
text
++
;
align
=
DT_RIGHT
;
}
...
...
dlls/comctl32/string.c
View file @
585f863c
...
...
@@ -240,7 +240,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen)
return
0
;
if
(
lpSrc
==
NULL
)
{
lpDest
[
0
]
=
L
'\0'
;
lpDest
[
0
]
=
'\0'
;
return
0
;
}
...
...
@@ -249,7 +249,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen)
len
=
nMaxLen
-
1
;
RtlMoveMemory
(
lpDest
,
lpSrc
,
len
*
sizeof
(
WCHAR
));
lpDest
[
len
]
=
L
'\0'
;
lpDest
[
len
]
=
'\0'
;
return
len
;
}
...
...
dlls/comctl32/tooltips.c
View file @
585f863c
...
...
@@ -427,7 +427,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
}
else
{
/* no text available */
infoPtr
->
szTipText
[
0
]
=
L
'\0'
;
infoPtr
->
szTipText
[
0
]
=
'\0'
;
}
TRACE
(
"%s
\n
"
,
debugstr_w
(
infoPtr
->
szTipText
));
...
...
@@ -515,7 +515,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TOOLTIPS_GetTipText
(
hwnd
,
infoPtr
,
infoPtr
->
nCurrentTool
);
if
(
infoPtr
->
szTipText
[
0
]
==
L
'\0'
)
{
if
(
infoPtr
->
szTipText
[
0
]
==
'\0'
)
{
infoPtr
->
nCurrentTool
=
-
1
;
return
;
}
...
...
@@ -734,7 +734,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TOOLTIPS_GetTipText
(
hwnd
,
infoPtr
,
infoPtr
->
nTrackTool
);
if
(
infoPtr
->
szTipText
[
0
]
==
L
'\0'
)
{
if
(
infoPtr
->
szTipText
[
0
]
==
'\0'
)
{
infoPtr
->
nTrackTool
=
-
1
;
return
;
}
...
...
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