ntdll: Mask invalid flags for RtlQueueWorkItem.

This commit is contained in:
Vitaliy Margolen 2010-11-11 08:31:56 -07:00 committed by Alexandre Julliard
parent 173957d294
commit aafa74908b
1 changed files with 3 additions and 1 deletions

View File

@ -447,7 +447,9 @@ NTSTATUS WINAPI RtlRegisterWait(PHANDLE NewWaitObject, HANDLE Object,
return status;
}
status = RtlQueueWorkItem( wait_thread_proc, wait_work_item, Flags & ~WT_EXECUTEONLYONCE );
Flags = Flags & (WT_EXECUTEINIOTHREAD | WT_EXECUTEINPERSISTENTTHREAD |
WT_EXECUTELONGFUNCTION | WT_TRANSFER_IMPERSONATION);
status = RtlQueueWorkItem( wait_thread_proc, wait_work_item, Flags );
if (status != STATUS_SUCCESS)
{
delete_wait_work_item( wait_work_item );