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
4c288720
Commit
4c288720
authored
Jul 13, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxerr8: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
10662838
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dxerr8.c
dlls/dxerr8/dxerr8.c
+4
-4
No files found.
dlls/dxerr8/dxerr8.c
View file @
4c288720
...
@@ -51,7 +51,7 @@ const char * WINAPI DXGetErrorString8A(HRESULT hr)
...
@@ -51,7 +51,7 @@ const char * WINAPI DXGetErrorString8A(HRESULT hr)
{
{
unsigned
int
i
,
j
,
k
=
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
);
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
resultA
;
return
info
[
j
].
resultA
;
...
@@ -69,7 +69,7 @@ const WCHAR * WINAPI DXGetErrorString8W(HRESULT hr)
...
@@ -69,7 +69,7 @@ const WCHAR * WINAPI DXGetErrorString8W(HRESULT hr)
static
const
WCHAR
unknown
[]
=
{
'U'
,
'n'
,
'k'
,
'n'
,
'o'
,
'w'
,
'n'
,
0
};
static
const
WCHAR
unknown
[]
=
{
'U'
,
'n'
,
'k'
,
'n'
,
'o'
,
'w'
,
'n'
,
0
};
unsigned
int
i
,
j
,
k
=
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
);
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
resultW
;
return
info
[
j
].
resultW
;
...
@@ -86,7 +86,7 @@ const char * WINAPI DXGetErrorDescription8A(HRESULT hr)
...
@@ -86,7 +86,7 @@ const char * WINAPI DXGetErrorDescription8A(HRESULT hr)
{
{
unsigned
int
i
,
j
,
k
=
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
);
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
descriptionA
;
return
info
[
j
].
descriptionA
;
...
@@ -104,7 +104,7 @@ const WCHAR * WINAPI DXGetErrorDescription8W(HRESULT hr)
...
@@ -104,7 +104,7 @@ const WCHAR * WINAPI DXGetErrorDescription8W(HRESULT hr)
static
const
WCHAR
na
[]
=
{
'n'
,
'/'
,
'a'
,
0
};
static
const
WCHAR
na
[]
=
{
'n'
,
'/'
,
'a'
,
0
};
unsigned
int
i
,
j
,
k
=
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
);
j
=
k
+
(
i
/
2
);
if
(
hr
==
info
[
j
].
hr
)
if
(
hr
==
info
[
j
].
hr
)
return
info
[
j
].
descriptionW
;
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