Fix incorrect buffer size
This commit is contained in:
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…
x
Reference in New Issue
Block a user