Merge branch 'sk/winansi-createthread-fix'
Fix use of CreateThread() API call made early in the windows start-up code. * sk/winansi-createthread-fix: compat/winansi: check for errors of CreateThread() correctly
This commit is contained in:
commit
8a1d607877
@ -644,7 +644,7 @@ void winansi_init(void)
|
||||
|
||||
/* start console spool thread on the pipe's read end */
|
||||
hthread = CreateThread(NULL, 0, console_thread, NULL, 0, NULL);
|
||||
if (hthread == INVALID_HANDLE_VALUE)
|
||||
if (!hthread)
|
||||
die_lasterr("CreateThread(console_thread) failed");
|
||||
|
||||
/* schedule cleanup routine */
|
||||
|
Loading…
Reference in New Issue
Block a user