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
1141a7df
Commit
1141a7df
authored
May 01, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/syslink: Use wide string literals.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8fee131b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
syslink.c
dlls/comctl32/syslink.c
+4
-8
No files found.
dlls/comctl32/syslink.c
View file @
1141a7df
...
...
@@ -165,10 +165,6 @@ static VOID SYSLINK_ClearDoc (SYSLINK_INFO *infoPtr)
*/
static
UINT
SYSLINK_ParseText
(
SYSLINK_INFO
*
infoPtr
,
LPCWSTR
Text
)
{
static
const
WCHAR
SL_LINKOPEN
[]
=
{
'<'
,
'a'
};
static
const
WCHAR
SL_HREF
[]
=
{
'h'
,
'r'
,
'e'
,
'f'
,
'='
,
'\"'
};
static
const
WCHAR
SL_ID
[]
=
{
'i'
,
'd'
,
'='
,
'\"'
};
static
const
WCHAR
SL_LINKCLOSE
[]
=
{
'<'
,
'/'
,
'a'
,
'>'
};
LPCWSTR
current
,
textstart
=
NULL
,
linktext
=
NULL
,
firsttag
=
NULL
;
int
taglen
=
0
,
textlen
=
0
,
linklen
=
0
,
docitems
=
0
;
PDOC_ITEM
Last
=
NULL
;
...
...
@@ -182,7 +178,7 @@ static UINT SYSLINK_ParseText (SYSLINK_INFO *infoPtr, LPCWSTR Text)
{
if
(
*
current
==
'<'
)
{
if
(
!
wcsnicmp
(
current
,
SL_LINKOPEN
,
ARRAY_SIZE
(
SL_LINKOPEN
)
)
&&
(
CurrentType
==
slText
))
if
(
!
wcsnicmp
(
current
,
L"<a"
,
2
)
&&
(
CurrentType
==
slText
))
{
BOOL
ValidParam
=
FALSE
,
ValidLink
=
FALSE
;
...
...
@@ -210,14 +206,14 @@ static UINT SYSLINK_ParseText (SYSLINK_INFO *infoPtr, LPCWSTR Text)
CheckParameter:
/* compare the current position with all known parameters */
if
(
!
wcsnicmp
(
tmp
,
SL_HREF
,
ARRAY_SIZE
(
SL_HREF
)
))
if
(
!
wcsnicmp
(
tmp
,
L"href=
\"
"
,
6
))
{
taglen
+=
6
;
ValidParam
=
TRUE
;
CurrentParameter
=
&
lpUrl
;
CurrentParameterLen
=
&
lenUrl
;
}
else
if
(
!
wcsnicmp
(
tmp
,
SL_ID
,
ARRAY_SIZE
(
SL_ID
)
))
else
if
(
!
wcsnicmp
(
tmp
,
L"id=
\"
"
,
4
))
{
taglen
+=
4
;
ValidParam
=
TRUE
;
...
...
@@ -291,7 +287,7 @@ CheckParameter:
}
}
}
else
if
(
!
wcsnicmp
(
current
,
SL_LINKCLOSE
,
ARRAY_SIZE
(
SL_LINKCLOSE
)
)
&&
(
CurrentType
==
slLink
)
&&
firsttag
)
else
if
(
!
wcsnicmp
(
current
,
L"</a>"
,
4
)
&&
(
CurrentType
==
slLink
)
&&
firsttag
)
{
/* there's a <a...> tag opened, first add the previous text, if present */
if
(
textstart
!=
NULL
&&
textlen
>
0
&&
firsttag
>
textstart
)
...
...
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