summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Pfender <jpfender@elegosoft.com>2011-05-19 15:37:10 +0200
committerVicent Marti <tanoku@gmail.com>2011-05-23 21:38:43 +0300
commita6d647d258c05698a3b2a7041ee69b5971dc9eca (patch)
tree4b56bf765e6f0d24ef698c089d164aa5742dc4f0
parent7c8b597ec351766c391103c144735e5631472604 (diff)
downloadlibgit2-a6d647d258c05698a3b2a7041ee69b5971dc9eca.tar.gz
win32/pthread.c: Move to new error handling mechanism
-rw-r--r--src/win32/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/pthread.c b/src/win32/pthread.c
index 7e17b6bdf..41cf5b35b 100644
--- a/src/win32/pthread.c
+++ b/src/win32/pthread.c
@@ -33,7 +33,7 @@ int pthread_create(pthread_t *GIT_RESTRICT thread,
{
GIT_UNUSED_ARG(attr);
*thread = (pthread_t) CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)start_routine, arg, 0, NULL);
- return *thread ? GIT_SUCCESS : GIT_EOSERR;
+ return *thread ? GIT_SUCCESS : git__throw(GIT_EOSERR, "Failed to create pthread");
}
int pthread_join(pthread_t thread, void **value_ptr)