mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +01:00
Fix stack corruption in HandleGraphEvent
This commit is contained in:
parent
1d336d851d
commit
d506f8588c
@ -915,14 +915,14 @@ void WaitForState(FILTER_STATE State)
|
|||||||
*/
|
*/
|
||||||
void HandleGraphEvent(void)
|
void HandleGraphEvent(void)
|
||||||
{
|
{
|
||||||
LONG evCode, evParam1, evParam2;
|
LONG evCode;
|
||||||
|
LONG_PTR evParam1, evParam2;
|
||||||
HRESULT hr=S_OK;
|
HRESULT hr=S_OK;
|
||||||
|
|
||||||
ASSERT(pME != nil);
|
ASSERT(pME != nil);
|
||||||
|
|
||||||
// Process all queued events
|
// Process all queued events
|
||||||
while (SUCCEEDED(pME->GetEvent(&evCode, (LONG_PTR *)&evParam1,
|
while (SUCCEEDED(pME->GetEvent(&evCode, &evParam1, &evParam2, 0)))
|
||||||
(LONG_PTR *)&evParam2, 0)))
|
|
||||||
{
|
{
|
||||||
// Free memory associated with callback, since we're not using it
|
// Free memory associated with callback, since we're not using it
|
||||||
hr = pME->FreeEventParams(evCode, evParam1, evParam2);
|
hr = pME->FreeEventParams(evCode, evParam1, evParam2);
|
||||||
|
Loading…
Reference in New Issue
Block a user