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
b4b69429
Commit
b4b69429
authored
Jul 24, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e6113707
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
moniker.c
dlls/itss/moniker.c
+1
-1
protocol.c
dlls/itss/protocol.c
+6
-6
No files found.
dlls/itss/moniker.c
View file @
b4b69429
...
...
@@ -435,7 +435,7 @@ static HRESULT WINAPI ITS_IParseDisplayNameImpl_ParseDisplayName(
{
static
const
WCHAR
szPrefix
[]
=
{
'@'
,
'M'
,
'S'
,
'I'
,
'T'
,
'S'
,
't'
,
'o'
,
'r'
,
'e'
,
':'
,
0
};
const
DWORD
prefix_len
=
(
sizeof
szPrefix
/
sizeof
szPrefix
[
0
]
)
-
1
;
const
DWORD
prefix_len
=
ARRAY_SIZE
(
szPrefix
)
-
1
;
DWORD
n
;
ITS_IParseDisplayNameImpl
*
This
=
impl_from_IParseDisplayName
(
iface
);
...
...
dlls/itss/protocol.c
View file @
b4b69429
...
...
@@ -153,12 +153,12 @@ static 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
NULL
;
}
...
...
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