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
0844e447
Commit
0844e447
authored
May 03, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxerr9: Don't use snprintf().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
689f5c80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
dxerr9.c
dlls/dxerr9/dxerr9.c
+2
-4
No files found.
dlls/dxerr9/dxerr9.c
View file @
0844e447
...
...
@@ -18,10 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
...
...
@@ -126,11 +124,11 @@ HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const cha
char
msg
[
1024
];
if
(
bPopMsgBox
)
{
snprintf
(
msg
,
sizeof
(
msg
)
,
"File: %s
\n
Line: %d
\n
Error Code: %s (0x%08x)
\n
Calling: %s"
,
wsprintfA
(
msg
,
"File: %s
\n
Line: %d
\n
Error Code: %s (0x%08x)
\n
Calling: %s"
,
strFile
,
dwLine
,
DXGetErrorString9A
(
hr
),
hr
,
strMsg
);
MessageBoxA
(
0
,
msg
,
"Unexpected error encountered"
,
MB_OK
|
MB_ICONERROR
);
}
else
{
snprintf
(
msg
,
sizeof
(
msg
)
,
"%s(%d): %s (hr=%s (0x%08x))"
,
strFile
,
wsprintfA
(
msg
,
"%s(%d): %s (hr=%s (0x%08x))"
,
strFile
,
dwLine
,
strMsg
,
DXGetErrorString9A
(
hr
),
hr
);
OutputDebugStringA
(
msg
);
}
...
...
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