Fix incorrect buffer size

This commit is contained in:
Richard Stanway 2014-08-13 02:05:49 +02:00
parent 0d53f7d982
commit dfbc2f9b54

View File

@ -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;
}
}