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
a76b29e0
Commit
a76b29e0
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxerr8: Win64 printf format warning fixes.
parent
c1da7049
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/dxerr8/Makefile.in
+0
-1
dxerr8.c
dlls/dxerr8/dxerr8.c
+8
-8
No files found.
dlls/dxerr8/Makefile.in
View file @
a76b29e0
...
...
@@ -3,7 +3,6 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
libdxerr8.a
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
dxerr8.c
...
...
dlls/dxerr8/dxerr8.c
View file @
a76b29e0
...
...
@@ -54,7 +54,7 @@ typedef struct {
const
char
*
WINAPI
DXGetErrorString8A
(
HRESULT
hr
)
{
unsigned
int
i
,
j
,
k
=
0
;
TRACE
(
"(0x%08
l
x)
\n
"
,
hr
);
TRACE
(
"(0x%08x)
\n
"
,
hr
);
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
...
...
@@ -73,7 +73,7 @@ const WCHAR * WINAPI DXGetErrorString8W(HRESULT hr)
{
static
const
WCHAR
unknown
[]
=
{
'U'
,
'n'
,
'k'
,
'n'
,
'o'
,
'w'
,
'n'
,
0
};
unsigned
int
i
,
j
,
k
=
0
;
TRACE
(
"(0x%08
l
x)
\n
"
,
hr
);
TRACE
(
"(0x%08x)
\n
"
,
hr
);
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
...
...
@@ -91,7 +91,7 @@ const WCHAR * WINAPI DXGetErrorString8W(HRESULT hr)
const
char
*
WINAPI
DXGetErrorDescription8A
(
HRESULT
hr
)
{
unsigned
int
i
,
j
,
k
=
0
;
TRACE
(
"(0x%08
l
x)
\n
"
,
hr
);
TRACE
(
"(0x%08x)
\n
"
,
hr
);
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
...
...
@@ -110,7 +110,7 @@ const WCHAR * WINAPI DXGetErrorDescription8W(HRESULT hr)
{
static
const
WCHAR
na
[]
=
{
'n'
,
'/'
,
'a'
,
0
};
unsigned
int
i
,
j
,
k
=
0
;
TRACE
(
"(0x%08
l
x)
\n
"
,
hr
);
TRACE
(
"(0x%08x)
\n
"
,
hr
);
for
(
i
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]);
i
!=
0
;
i
/=
2
)
{
j
=
k
+
(
i
/
2
);
...
...
@@ -128,14 +128,14 @@ const WCHAR * WINAPI DXGetErrorDescription8W(HRESULT hr)
HRESULT
WINAPI
DXTraceA
(
const
char
*
strFile
,
DWORD
dwLine
,
HRESULT
hr
,
const
char
*
strMsg
,
BOOL
bPopMsgBox
)
{
char
msg
[
1024
];
TRACE
(
"(%p,%
ld,0x%08l
x,%p,%d)
\n
"
,
strFile
,
dwLine
,
hr
,
strMsg
,
bPopMsgBox
);
TRACE
(
"(%p,%
d,0x%08
x,%p,%d)
\n
"
,
strFile
,
dwLine
,
hr
,
strMsg
,
bPopMsgBox
);
if
(
bPopMsgBox
)
{
snprintf
(
msg
,
sizeof
(
msg
),
"File: %s
\n
Line: %
ld
\n
Error Code: %s (0x%08l
x)
\n
Calling: %s"
,
snprintf
(
msg
,
sizeof
(
msg
),
"File: %s
\n
Line: %
d
\n
Error Code: %s (0x%08
x)
\n
Calling: %s"
,
strFile
,
dwLine
,
DXGetErrorString8A
(
hr
),
hr
,
strMsg
);
MessageBoxA
(
0
,
msg
,
"Unexpected error encountered"
,
MB_OK
|
MB_ICONERROR
);
}
else
{
snprintf
(
msg
,
sizeof
(
msg
),
"%s(%
ld): %s (hr=%s (0x%08l
x))"
,
strFile
,
snprintf
(
msg
,
sizeof
(
msg
),
"%s(%
d): %s (hr=%s (0x%08
x))"
,
strFile
,
dwLine
,
strMsg
,
DXGetErrorString8A
(
hr
),
hr
);
OutputDebugStringA
(
msg
);
}
...
...
@@ -146,7 +146,7 @@ HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const cha
HRESULT
WINAPI
DXTraceW
(
const
char
*
strFile
,
DWORD
dwLine
,
HRESULT
hr
,
const
WCHAR
*
strMsg
,
BOOL
bPopMsgBox
)
{
WCHAR
msg
[
1024
];
TRACE
(
"(%p,%
ld,0x%08l
x,%p,%d)
\n
"
,
strFile
,
dwLine
,
hr
,
strMsg
,
bPopMsgBox
);
TRACE
(
"(%p,%
d,0x%08
x,%p,%d)
\n
"
,
strFile
,
dwLine
,
hr
,
strMsg
,
bPopMsgBox
);
if
(
bPopMsgBox
)
{
static
const
WCHAR
format
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
,
':'
,
' '
,
'%'
,
's'
,
'\\'
,
'n'
,
'L'
,
'i'
,
'n'
,
...
...
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