Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
aa769ad4
Commit
aa769ad4
authored
Mar 27, 2020
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Use stricmp() instead of _strnicmp(..., -1).
Signed-off-by:
Paul Gofman
<
gofmanp@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b9b2a04f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
chm.c
dlls/hhctrl.ocx/chm.c
+1
-1
content.c
dlls/hhctrl.ocx/content.c
+6
-6
index.c
dlls/hhctrl.ocx/index.c
+6
-6
No files found.
dlls/hhctrl.ocx/chm.c
View file @
aa769ad4
...
...
@@ -595,7 +595,7 @@ WCHAR *GetDocumentTitle(CHMInfo *info, LPCWSTR document)
TRACE
(
"%s
\n
"
,
node
.
buf
);
if
(
!
_strnicmp
(
node_name
.
buf
,
"title"
,
-
1
))
{
if
(
!
stricmp
(
node_name
.
buf
,
"title"
))
{
if
(
next_content
(
&
stream
,
&
content
)
&&
content
.
len
>
1
)
{
document_title
=
strdupnAtoW
(
&
content
.
buf
[
1
],
content
.
len
-
1
);
...
...
dlls/hhctrl.ocx/content.c
View file @
aa769ad4
...
...
@@ -148,9 +148,9 @@ static ContentItem *parse_sitemap_object(HHInfo *info, stream_t *stream, Content
TRACE
(
"%s
\n
"
,
node
.
buf
);
if
(
!
_strnicmp
(
node_name
.
buf
,
"/object"
,
-
1
))
if
(
!
stricmp
(
node_name
.
buf
,
"/object"
))
break
;
if
(
!
_strnicmp
(
node_name
.
buf
,
"param"
,
-
1
))
if
(
!
stricmp
(
node_name
.
buf
,
"param"
))
parse_obj_node_param
(
item
,
hhc_root
,
node
.
buf
,
info
->
pCHMInfo
->
codePage
);
strbuf_zero
(
&
node
);
...
...
@@ -195,7 +195,7 @@ static ContentItem *parse_ul(HHInfo *info, stream_t *stream, ContentItem *hhc_ro
TRACE
(
"%s
\n
"
,
node
.
buf
);
if
(
!
_strnicmp
(
node_name
.
buf
,
"object"
,
-
1
))
{
if
(
!
stricmp
(
node_name
.
buf
,
"object"
))
{
const
char
*
ptr
;
int
len
;
...
...
@@ -210,10 +210,10 @@ static ContentItem *parse_ul(HHInfo *info, stream_t *stream, ContentItem *hhc_ro
if
(
!
ret
)
ret
=
prev
;
}
}
else
if
(
!
_strnicmp
(
node_name
.
buf
,
"ul"
,
-
1
))
{
}
else
if
(
!
stricmp
(
node_name
.
buf
,
"ul"
))
{
new_item
=
parse_ul
(
info
,
stream
,
hhc_root
);
insert_item
(
prev
,
new_item
,
INSERT_CHILD
);
}
else
if
(
!
_strnicmp
(
node_name
.
buf
,
"/ul"
,
-
1
))
{
}
else
if
(
!
stricmp
(
node_name
.
buf
,
"/ul"
))
{
break
;
}
...
...
@@ -245,7 +245,7 @@ static ContentItem *parse_hhc(HHInfo *info, IStream *str, ContentItem *hhc_root,
TRACE
(
"%s
\n
"
,
node
.
buf
);
if
(
!
_strnicmp
(
node_name
.
buf
,
"ul"
,
-
1
))
{
if
(
!
stricmp
(
node_name
.
buf
,
"ul"
))
{
ContentItem
*
item
=
parse_ul
(
info
,
&
stream
,
hhc_root
);
prev
=
insert_item
(
prev
,
item
,
INSERT_CHILD
);
if
(
!
ret
)
...
...
dlls/hhctrl.ocx/index.c
View file @
aa769ad4
...
...
@@ -137,9 +137,9 @@ static IndexItem *parse_index_sitemap_object(HHInfo *info, stream_t *stream)
TRACE
(
"%s
\n
"
,
node
.
buf
);
if
(
!
_strnicmp
(
node_name
.
buf
,
"param"
,
-
1
))
{
if
(
!
stricmp
(
node_name
.
buf
,
"param"
))
{
parse_index_obj_node_param
(
item
,
node
.
buf
,
info
->
pCHMInfo
->
codePage
);
}
else
if
(
!
_strnicmp
(
node_name
.
buf
,
"/object"
,
-
1
))
{
}
else
if
(
!
stricmp
(
node_name
.
buf
,
"/object"
))
{
break
;
}
else
{
WARN
(
"Unhandled tag! %s
\n
"
,
node_name
.
buf
);
...
...
@@ -173,7 +173,7 @@ static IndexItem *parse_li(HHInfo *info, stream_t *stream)
TRACE
(
"%s
\n
"
,
node
.
buf
);
if
(
!
_strnicmp
(
node_name
.
buf
,
"object"
,
-
1
))
{
if
(
!
stricmp
(
node_name
.
buf
,
"object"
))
{
const
char
*
ptr
;
int
len
;
...
...
@@ -228,7 +228,7 @@ static void parse_hhindex(HHInfo *info, IStream *str, IndexItem *item)
TRACE
(
"%s
\n
"
,
node
.
buf
);
if
(
!
_strnicmp
(
node_name
.
buf
,
"li"
,
-
1
))
{
if
(
!
stricmp
(
node_name
.
buf
,
"li"
))
{
IndexItem
*
new_item
;
new_item
=
parse_li
(
info
,
&
stream
);
...
...
@@ -246,9 +246,9 @@ static void parse_hhindex(HHInfo *info, IStream *str, IndexItem *item)
item
=
item
->
next
;
item
->
indentLevel
=
indent_level
;
}
}
else
if
(
!
_strnicmp
(
node_name
.
buf
,
"ul"
,
-
1
))
{
}
else
if
(
!
stricmp
(
node_name
.
buf
,
"ul"
))
{
indent_level
++
;
}
else
if
(
!
_strnicmp
(
node_name
.
buf
,
"/ul"
,
-
1
))
{
}
else
if
(
!
stricmp
(
node_name
.
buf
,
"/ul"
))
{
indent_level
--
;
}
else
{
WARN
(
"Unhandled tag! %s
\n
"
,
node_name
.
buf
);
...
...
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