From 689f5c80f3c051af1087e59b962fc5e5583ea461 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 3 May 2019 12:26:36 +0200 Subject: [PATCH] dxerr8: Don't use snprintf(). Signed-off-by: Alexandre Julliard --- dlls/dxerr8/dxerr8.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/dxerr8/dxerr8.c b/dlls/dxerr8/dxerr8.c index 1d2229690a6..eb723941245 100644 --- a/dlls/dxerr8/dxerr8.c +++ b/dlls/dxerr8/dxerr8.c @@ -18,10 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "config.h" #include -#include #include "windef.h" #include "winbase.h" @@ -122,11 +120,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, DXGetErrorString8A(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, DXGetErrorString8A(hr), hr); OutputDebugStringA(msg); }