summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-02-21 17:13:56 +0100
committerwithmorten <morten.with@gmail.com>2021-02-21 17:13:56 +0100
commita3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8 (patch)
tree94fddd703fa0528b837f8ec7d3ed3e8224ad298a
parentmake debug render groups optional (diff)
parentFix stack corruption in HandleGraphEvent (diff)
downloadre3-a3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8.tar
re3-a3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8.tar.gz
re3-a3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8.tar.bz2
re3-a3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8.tar.lz
re3-a3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8.tar.xz
re3-a3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8.tar.zst
re3-a3f1601fd1bdbaf4d223d6c462e1e2e72c17cec8.zip
-rw-r--r--src/skel/win/win.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index baf9fdde..01e56701 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -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);