summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/overlapped.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/overlapped.c b/Modules/overlapped.c
index df6282c..cd7869f 100644
--- a/Modules/overlapped.c
+++ b/Modules/overlapped.c
@@ -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;
@@ -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);