From f9fddff1b59c83317706001112391a362c311049 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Sat, 4 Feb 2006 11:29:18 +0000 Subject: [PATCH] Fixed a really strange crash problem on Windows 2003 systems --- zsnes/src/win/winlink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 2bd7492f..b4bfc659 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -1245,7 +1245,7 @@ void ReleaseDirectDraw() void DInputError(){ char message1[256]; - sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx "); + sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx\0"); MessageBox (NULL, message1, "DirectInput Error" , MB_ICONERROR ); } @@ -1256,7 +1256,7 @@ bool InitInput() if (FAILED(hr=pDirectInput8Create(hInst,DIRECTINPUT_VERSION,IID_IDirectInput8A,(void **) &DInput,NULL))) { - sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx "); + sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx\0"); MessageBox (NULL, message1, "DirectInput Error" , MB_ICONERROR ); switch (hr)