mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 09:08:59 +00:00
Merge pull request 'Fix potential stack corruption in HandleGraphEvent in 64bit arch' (#2) from HaydnTrigg/re3:master into master
This commit is contained in:
commit
a3f1601fd1
1 changed files with 3 additions and 3 deletions
|
@ -914,14 +914,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 a new issue