Misha Koshelev : kernel32: CreateThread returns NULL on error, not INVALID_HANDLE_VALUE.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 6 15:23:09 CST 2007


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

Author: Misha Koshelev <mk144210 at bcm.tmc.edu>
Date:   Tue Feb  6 08:41:09 2007 -0600

kernel32: CreateThread returns NULL on error, not INVALID_HANDLE_VALUE.

---

 dlls/kernel32/tests/change.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/change.c b/dlls/kernel32/tests/change.c
index 0774caf..54bdffa 100644
--- a/dlls/kernel32/tests/change.c
+++ b/dlls/kernel32/tests/change.c
@@ -65,7 +65,7 @@ static HANDLE StartNotificationThread(LP
 
     thread = CreateThread(NULL, 0, NotificationThread, (LPVOID)change,
                           0, &threadId);
-    ok(thread != INVALID_HANDLE_VALUE, "CreateThread error: %d\n", GetLastError());
+    ok(thread != NULL, "CreateThread error: %d\n", GetLastError());
 
     return thread;
 }




More information about the wine-cvs mailing list