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