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
d7fb7dfb
Commit
d7fb7dfb
authored
Jul 13, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxerr9: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae7acbfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dxerr9.c
dlls/dxerr9/dxerr9.c
+4
-4
No files found.
dlls/dxerr9/dxerr9.c
View file @
d7fb7dfb
...
...
@@ -55,7 +55,7 @@ const char * WINAPI DXGetErrorString9A(HRESULT hr)
{
unsigned
int
i
,
j
,
k
=
0
;
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]
);
i
!=
0
;
i
/=
2
)
{
for
(
i
=
ARRAY_SIZE
(
info
);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
resultA
;
...
...
@@ -73,7 +73,7 @@ const WCHAR * WINAPI DXGetErrorString9W(HRESULT hr)
static
const
WCHAR
unknown
[]
=
{
'U'
,
'n'
,
'k'
,
'n'
,
'o'
,
'w'
,
'n'
,
0
};
unsigned
int
i
,
j
,
k
=
0
;
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]
);
i
!=
0
;
i
/=
2
)
{
for
(
i
=
ARRAY_SIZE
(
info
);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
resultW
;
...
...
@@ -90,7 +90,7 @@ const char * WINAPI DXGetErrorDescription9A(HRESULT hr)
{
unsigned
int
i
,
j
,
k
=
0
;
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]
);
i
!=
0
;
i
/=
2
)
{
for
(
i
=
ARRAY_SIZE
(
info
);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
descriptionA
;
...
...
@@ -108,7 +108,7 @@ const WCHAR * WINAPI DXGetErrorDescription9W(HRESULT hr)
static
const
WCHAR
na
[]
=
{
'n'
,
'/'
,
'a'
,
0
};
unsigned
int
i
,
j
,
k
=
0
;
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]
);
i
!=
0
;
i
/=
2
)
{
for
(
i
=
ARRAY_SIZE
(
info
);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
descriptionW
;
...
...
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