From a4e338b37999398dc2e07919bec9393be252de2d Mon Sep 17 00:00:00 2001 From: nitsuja- Date: Mon, 24 Jan 2011 04:42:34 +0000 Subject: [PATCH] fixed a couple of problems with UpdateFPSDisplay (DX9) (though it's a trivial fix somebody else was probably about to make) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6901 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/main.cpp b/Source/Plugins/Plugin_VideoDX9/Src/main.cpp index a2b8bef37f..2cb376fe57 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/main.cpp @@ -147,7 +147,7 @@ unsigned int Callback_PeekMessages() void UpdateFPSDisplay(const char *text) { TCHAR temp[512]; - swprintf_s(temp, sizeof temp, _T("%s | DX9 | %s"), svn_rev_str, text); + swprintf_s(temp, sizeof(temp)/sizeof(TCHAR), _T("%hs | DX9 | %hs"), svn_rev_str, text); SetWindowText(EmuWindow::GetWnd(), temp); }