Module: wine Branch: master Commit: bcd2d0ec5b58849ba66c5cf9a28f1be201fa66e8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bcd2d0ec5b58849ba66c5cf9a2...
Author: Jörg Höhle hoehle@users.sourceforge.net Date: Wed Jun 15 20:25:56 2011 +0200
ntdll: Use list_empty() instead of list_count() == 0.
---
dlls/ntdll/threadpool.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c index 1a10240..547e6eb 100644 --- a/dlls/ntdll/threadpool.c +++ b/dlls/ntdll/threadpool.c @@ -577,7 +577,7 @@ static void queue_remove_timer(struct queue_timer *t) NtSetEvent(t->event, NULL); RtlFreeHeap(GetProcessHeap(), 0, t);
- if (q->quit && list_count(&q->timers) == 0) + if (q->quit && list_empty(&q->timers)) NtSetEvent(q->event, NULL); }
@@ -725,7 +725,7 @@ static void WINAPI timer_queue_thread_proc(LPVOID p) timer got put at the head of the list so we need to adjust our timeout. */ RtlEnterCriticalSection(&q->cs); - if (q->quit && list_count(&q->timers) == 0) + if (q->quit && list_empty(&q->timers)) done = TRUE; RtlLeaveCriticalSection(&q->cs); }