From 7f5f64e00f27cb4623ca75c98ab072731bc2ef4c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Oct 2015 16:51:50 -0400 Subject: [PATCH] Use the standard library method wscanf(), not wscanf_s(). --- Source/nragev20/XInputController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/nragev20/XInputController.cpp b/Source/nragev20/XInputController.cpp index 1e2c9daa2..d696e303a 100644 --- a/Source/nragev20/XInputController.cpp +++ b/Source/nragev20/XInputController.cpp @@ -100,10 +100,10 @@ BOOL IsXInputDevice( const GUID* pGuidProductFromDirectInput ) // If it does, then get the VID/PID from var.bstrVal DWORD dwPid = 0, dwVid = 0; WCHAR* strVid = wcsstr( var.bstrVal, L"VID_" ); - if( strVid && wscanf_s( strVid, L"VID_%4X", &dwVid ) != 1 ) + if (strVid && wscanf(strVid, L"VID_%4X", &dwVid) != 1) dwVid = 0; WCHAR* strPid = wcsstr( var.bstrVal, L"PID_" ); - if( strPid && wscanf_s( strPid, L"PID_%4X", &dwPid ) != 1 ) + if (strPid && wscanf(strPid, L"PID_%4X", &dwPid) != 1) dwPid = 0; // Compare the VID/PID to the DInput device