Fix stack corruption in HandleGraphEvent

This commit is contained in:
Haydn Trigg 2021-02-21 11:38:32 +00:00
parent 9a7fa47857
commit 620155ac8d
1 changed files with 3 additions and 3 deletions

View File

@ -914,14 +914,14 @@ void WaitForState(FILTER_STATE State)
*/
void HandleGraphEvent(void)
{
LONG evCode, evParam1, evParam2;
LONG evCode;
LONG_PTR evParam1, evParam2;
HRESULT hr=S_OK;
ASSERT(pME != nil);
// Process all queued events
while (SUCCEEDED(pME->GetEvent(&evCode, (LONG_PTR *)&evParam1,
(LONG_PTR *)&evParam2, 0)))
while (SUCCEEDED(pME->GetEvent(&evCode, &evParam1, &evParam2, 0)))
{
// Free memory associated with callback, since we're not using it
hr = pME->FreeEventParams(evCode, evParam1, evParam2);