Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-10 01:40:47 +0300
committerJunio C Hamano <gitster@pobox.com>2023-02-10 01:40:47 +0300
commit8a1d607877d5bb43da444a9a947eed3f366ed3e8 (patch)
treeee0d29de70ad04870eb31745c8d1c712fc2019f0 /compat
parent4158b92f16a6ba21b092753fe0e671f67d1bf157 (diff)
parent592bcab61b86dbbac6fd2366039b4837b306ed66 (diff)
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
Diffstat (limited to 'compat')
-rw-r--r--compat/winansi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/winansi.c b/compat/winansi.c
index 3abe8dd5a2..f83610f684 100644
--- a/compat/winansi.c
+++ b/compat/winansi.c
@@ -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 */