Use the standard library method wscanf(), not wscanf_s().
This commit is contained in:
parent
572418ec30
commit
7f5f64e00f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue