Fix incorrect buffer size

master
Richard Stanway 2014-08-13 02:05:49 +02:00
parent 0d53f7d982
commit dfbc2f9b54
1 changed files with 1 additions and 1 deletions

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