Vitaliy Margolen : ntdll: Mask invalid flags for RtlQueueWorkItem.

Alexandre Julliard julliard at winehq.org
Thu Nov 11 12:05:52 CST 2010


Module: wine
Branch: master
Commit: aafa74908b64bbcd18a814fd94640c39aa159605
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aafa74908b64bbcd18a814fd94640c39aa159605

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Thu Nov 11 08:31:56 2010 -0700

ntdll: Mask invalid flags for RtlQueueWorkItem.

---

 dlls/ntdll/threadpool.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index 44afb01..1a10240 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -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 );




More information about the wine-cvs mailing list