Alexandre Julliard : dxerr9: Don't use snprintf().
Alexandre Julliard
julliard at winehq.org
Fri May 3 15:46:16 CDT 2019
Module: wine
Branch: master
Commit: 0844e4473c52f15e1a6ec1e48c678aac42ed6649
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0844e4473c52f15e1a6ec1e48c678aac42ed6649
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri May 3 12:26:45 2019 +0200
dxerr9: Don't use snprintf().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dxerr9/dxerr9.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/dxerr9/dxerr9.c b/dlls/dxerr9/dxerr9.c
index e5b1861..aa1de46 100644
--- a/dlls/dxerr9/dxerr9.c
+++ b/dlls/dxerr9/dxerr9.c
@@ -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\nLine: %d\nError Code: %s (0x%08x)\nCalling: %s",
+ wsprintfA(msg, "File: %s\nLine: %d\nError Code: %s (0x%08x)\nCalling: %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);
}
More information about the wine-cvs
mailing list