Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call
  • Loading branch information
ZackerySpytz committed Apr 23, 2020
commit 9555fca6086b5493e759a7f49a98456217742f1f
5 changes: 2 additions & 3 deletions Modules/overlapped.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ struct PostCallbackData {
};

static VOID CALLBACK
PostToQueueCallback(PVOID lpParameter, BOOL TimerOrWaitFired)
PostToQueueCallback(PVOID lpParameter, BOOLEAN TimerOrWaitFired)
{
struct PostCallbackData *p = (struct PostCallbackData*) lpParameter;

Expand Down Expand Up @@ -295,8 +295,7 @@ overlapped_RegisterWaitWithQueue(PyObject *self, PyObject *args)
*pdata = data;

if (!RegisterWaitForSingleObject(
&NewWaitObject, Object, (WAITORTIMERCALLBACK)PostToQueueCallback,
pdata, Milliseconds,
&NewWaitObject, Object, PostToQueueCallback, pdata, Milliseconds,
WT_EXECUTEINWAITTHREAD | WT_EXECUTEONLYONCE))
{
PyMem_RawFree(pdata);
Expand Down