Fix incorrect buffer size
parent
0d53f7d982
commit
dfbc2f9b54
|
@ -169,7 +169,7 @@ const static TCHAR *IAudioHRESULTToString(HRESULT hr)
|
|||
return TEXT("E_NOINTERFACE");
|
||||
|
||||
default:
|
||||
tsprintf_s(hResultCode, sizeof(hResultCode), TEXT("%08lX"), hr);
|
||||
tsprintf_s(hResultCode, _countof(hResultCode), TEXT("%08lX"), hr);
|
||||
return hResultCode;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue