kernel32: CreateThread returns NULL on error, not INVALID_HANDLE_VALUE.
This commit is contained in:
parent
6f2dd76750
commit
12e3d642dd
|
@ -65,7 +65,7 @@ static HANDLE StartNotificationThread(LPCSTR path, BOOL subtree, DWORD flags)
|
||||||
|
|
||||||
thread = CreateThread(NULL, 0, NotificationThread, (LPVOID)change,
|
thread = CreateThread(NULL, 0, NotificationThread, (LPVOID)change,
|
||||||
0, &threadId);
|
0, &threadId);
|
||||||
ok(thread != INVALID_HANDLE_VALUE, "CreateThread error: %d\n", GetLastError());
|
ok(thread != NULL, "CreateThread error: %d\n", GetLastError());
|
||||||
|
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue