[PATCH 2/3] ntdll: Set WT_EXECUTEONLYONCE if no period is specified
Maarten Lankhorst
m.b.lankhorst at gmail.com
Tue Apr 6 16:49:40 CDT 2010
---
dlls/ntdll/threadpool.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index 461777f..810b883 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -936,6 +936,8 @@ NTSTATUS WINAPI RtlCreateTimer(PHANDLE NewTimer, HANDLE TimerQueue,
t->flags = Flags;
t->destroy = FALSE;
t->event = NULL;
+ if (!t->period)
+ t->flags |= WT_EXECUTEONLYONCE;
status = STATUS_SUCCESS;
RtlEnterCriticalSection(&q->cs);
--
1.7.0
--------------010607040405030904040300--
More information about the wine-patches
mailing list