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
1e9de768
Commit
1e9de768
authored
May 30, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sxs/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b4c89dc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cache.c
dlls/sxs/tests/cache.c
+4
-4
No files found.
dlls/sxs/tests/cache.c
View file @
1e9de768
...
...
@@ -155,12 +155,12 @@ static void test_QueryAssemblyInfo( void )
memset
(
&
info
,
0
,
sizeof
(
info
)
);
info
.
cbAssemblyInfo
=
sizeof
(
info
);
info
.
pszCurrentAssemblyPathBuf
=
path
;
info
.
cchBuf
=
sizeof
(
path
)
/
sizeof
(
path
[
0
]
);
info
.
cchBuf
=
ARRAY_SIZE
(
path
);
hr
=
IAssemblyCache_QueryAssemblyInfo
(
cache
,
0
,
comctlW
,
&
info
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
info
.
dwAssemblyFlags
==
1
,
"got %08x
\n
"
,
info
.
dwAssemblyFlags
);
ok
(
!
info
.
uliAssemblySizeInKB
.
u
.
LowPart
,
"got %u
\n
"
,
info
.
uliAssemblySizeInKB
.
u
.
LowPart
);
ok
(
info
.
cchBuf
==
sizeof
(
path
)
/
sizeof
(
path
[
0
]
),
"got %u
\n
"
,
info
.
cchBuf
);
ok
(
info
.
cchBuf
==
ARRAY_SIZE
(
path
),
"got %u
\n
"
,
info
.
cchBuf
);
ok
(
path
[
0
],
"empty path
\n
"
);
memset
(
&
info
,
0
,
sizeof
(
info
)
);
...
...
@@ -193,13 +193,13 @@ static void test_QueryAssemblyInfo( void )
memset
(
&
info
,
0
,
sizeof
(
info
)
);
info
.
cbAssemblyInfo
=
sizeof
(
info
);
info
.
pszCurrentAssemblyPathBuf
=
path
;
info
.
cchBuf
=
sizeof
(
path
)
/
sizeof
(
path
[
0
]
);
info
.
cchBuf
=
ARRAY_SIZE
(
path
);
path
[
0
]
=
0
;
hr
=
IAssemblyCache_QueryAssemblyInfo
(
cache
,
2
,
comctlW
,
&
info
);
ok
(
hr
==
E_INVALIDARG
,
"got %08x
\n
"
,
hr
);
ok
(
!
info
.
dwAssemblyFlags
,
"got %08x
\n
"
,
info
.
dwAssemblyFlags
);
ok
(
!
info
.
uliAssemblySizeInKB
.
u
.
LowPart
,
"got %u
\n
"
,
info
.
uliAssemblySizeInKB
.
u
.
LowPart
);
ok
(
info
.
cchBuf
==
sizeof
(
path
)
/
sizeof
(
path
[
0
]
),
"got %u
\n
"
,
info
.
cchBuf
);
ok
(
info
.
cchBuf
==
ARRAY_SIZE
(
path
),
"got %u
\n
"
,
info
.
cchBuf
);
ok
(
!
path
[
0
],
"got %s
\n
"
,
wine_dbgstr_w
(
path
)
);
IAssemblyCache_Release
(
cache
);
...
...
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