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
0a948c74
Commit
0a948c74
authored
Jul 20, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89277068
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
chm.c
dlls/hhctrl.ocx/chm.c
+6
-6
help.c
dlls/hhctrl.ocx/help.c
+3
-3
No files found.
dlls/hhctrl.ocx/chm.c
View file @
0a948c74
...
...
@@ -483,12 +483,12 @@ LPCWSTR skip_schema(LPCWSTR url)
static
const
WCHAR
msits_schema
[]
=
{
'm'
,
's'
,
'-'
,
'i'
,
't'
,
's'
,
':'
};
static
const
WCHAR
mk_schema
[]
=
{
'm'
,
'k'
,
':'
,
'@'
,
'M'
,
'S'
,
'I'
,
'T'
,
'S'
,
't'
,
'o'
,
'r'
,
'e'
,
':'
};
if
(
!
strncmpiW
(
its_schema
,
url
,
sizeof
(
its_schema
)
/
sizeof
(
WCHAR
)))
return
url
+
sizeof
(
its_schema
)
/
sizeof
(
WCHAR
);
if
(
!
strncmpiW
(
msits_schema
,
url
,
sizeof
(
msits_schema
)
/
sizeof
(
WCHAR
)))
return
url
+
sizeof
(
msits_schema
)
/
sizeof
(
WCHAR
);
if
(
!
strncmpiW
(
mk_schema
,
url
,
sizeof
(
mk_schema
)
/
sizeof
(
WCHAR
)))
return
url
+
sizeof
(
mk_schema
)
/
sizeof
(
WCHAR
);
if
(
!
strncmpiW
(
its_schema
,
url
,
ARRAY_SIZE
(
its_schema
)))
return
url
+
ARRAY_SIZE
(
its_schema
);
if
(
!
strncmpiW
(
msits_schema
,
url
,
ARRAY_SIZE
(
msits_schema
)))
return
url
+
ARRAY_SIZE
(
msits_schema
);
if
(
!
strncmpiW
(
mk_schema
,
url
,
ARRAY_SIZE
(
mk_schema
)))
return
url
+
ARRAY_SIZE
(
mk_schema
);
return
url
;
}
...
...
dlls/hhctrl.ocx/help.c
View file @
0a948c74
...
...
@@ -241,7 +241,7 @@ static BOOL AppendFullPathURL(LPCWSTR file, LPWSTR buf, LPCWSTR index)
TRACE
(
"%s %p %s
\n
"
,
debugstr_w
(
file
),
buf
,
debugstr_w
(
index
));
if
(
!
GetFullPathNameW
(
file
,
sizeof
(
full_path
)
/
sizeof
(
full_path
[
0
]
),
full_path
,
NULL
))
{
if
(
!
GetFullPathNameW
(
file
,
ARRAY_SIZE
(
full_path
),
full_path
,
NULL
))
{
WARN
(
"GetFullPathName failed: %u
\n
"
,
GetLastError
());
return
FALSE
;
}
...
...
@@ -1830,7 +1830,7 @@ HHInfo *CreateHelpViewer(HHInfo *info, LPCWSTR filename, HWND caller)
/* Set the invalid tab ID (-1) as the default value for all
* of the tabs, this matches a failed TCM_INSERTITEM call.
*/
for
(
i
=
0
;
i
<
sizeof
(
info
->
tabs
)
/
sizeof
(
HHTab
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
info
->
tabs
);
i
++
)
info
->
tabs
[
i
].
id
=
-
1
;
OleInitialize
(
NULL
);
...
...
@@ -1867,7 +1867,7 @@ HHInfo *CreateHelpViewer(HHInfo *info, LPCWSTR filename, HWND caller)
*/
static
char
find_html_symbol
(
const
char
*
entity
,
int
entity_len
)
{
int
max
=
sizeof
(
html_encoded_symbols
)
/
sizeof
(
html_encoded_symbols
[
0
]
)
-
1
;
int
max
=
ARRAY_SIZE
(
html_encoded_symbols
)
-
1
;
int
min
=
0
,
dir
;
while
(
min
<=
max
)
...
...
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