bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)

This commit is contained in:
Zackery Spytz 2020-07-15 12:43:00 -06:00 committed by GitHub
parent 0108b2a240
commit af4eda46d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -293,7 +293,7 @@ struct PostCallbackData {
}; };
static VOID CALLBACK static VOID CALLBACK
PostToQueueCallback(PVOID lpParameter, BOOL TimerOrWaitFired) PostToQueueCallback(PVOID lpParameter, BOOLEAN TimerOrWaitFired)
{ {
struct PostCallbackData *p = (struct PostCallbackData*) lpParameter; struct PostCallbackData *p = (struct PostCallbackData*) lpParameter;
@ -335,8 +335,7 @@ _overlapped_RegisterWaitWithQueue_impl(PyObject *module, HANDLE Object,
*pdata = data; *pdata = data;
if (!RegisterWaitForSingleObject( if (!RegisterWaitForSingleObject(
&NewWaitObject, Object, (WAITORTIMERCALLBACK)PostToQueueCallback, &NewWaitObject, Object, PostToQueueCallback, pdata, Milliseconds,
pdata, Milliseconds,
WT_EXECUTEINWAITTHREAD | WT_EXECUTEONLYONCE)) WT_EXECUTEINWAITTHREAD | WT_EXECUTEONLYONCE))
{ {
PyMem_RawFree(pdata); PyMem_RawFree(pdata);