kernel32: CreateThread returns NULL on error, not INVALID_HANDLE_VALUE.

This commit is contained in:
Misha Koshelev 2007-02-06 08:41:09 -06:00 committed by Alexandre Julliard
parent 6f2dd76750
commit 12e3d642dd
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ static HANDLE StartNotificationThread(LPCSTR path, BOOL subtree, DWORD flags)
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;
}