mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)
This commit is contained in:
parent
0108b2a240
commit
af4eda46d1
|
@ -293,7 +293,7 @@ struct PostCallbackData {
|
|||
};
|
||||
|
||||
static VOID CALLBACK
|
||||
PostToQueueCallback(PVOID lpParameter, BOOL TimerOrWaitFired)
|
||||
PostToQueueCallback(PVOID lpParameter, BOOLEAN TimerOrWaitFired)
|
||||
{
|
||||
struct PostCallbackData *p = (struct PostCallbackData*) lpParameter;
|
||||
|
||||
|
@ -335,8 +335,7 @@ _overlapped_RegisterWaitWithQueue_impl(PyObject *module, HANDLE Object,
|
|||
*pdata = data;
|
||||
|
||||
if (!RegisterWaitForSingleObject(
|
||||
&NewWaitObject, Object, (WAITORTIMERCALLBACK)PostToQueueCallback,
|
||||
pdata, Milliseconds,
|
||||
&NewWaitObject, Object, PostToQueueCallback, pdata, Milliseconds,
|
||||
WT_EXECUTEINWAITTHREAD | WT_EXECUTEONLYONCE))
|
||||
{
|
||||
PyMem_RawFree(pdata);
|
||||
|
|
Loading…
Reference in a new issue