1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-27 13:40:47 +02:00

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:
Junio C Hamano 2023-02-09 14:40:47 -08:00
commit 8a1d607877

View File

@ -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 */