kernel32: CreateThread returns NULL on error, not INVALID_HANDLE_VALUE.
[wine] / include / msvcrt / unistd.h
1 #include <io.h>
2 #include <process.h>