projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
lib
/
silcutil
/
win32
/
silcwin32thread.c
diff --git
a/lib/silcutil/win32/silcwin32thread.c
b/lib/silcutil/win32/silcwin32thread.c
index 6e6a90949521ab204206cdc7cd3a2a184f266fc1..bea9552d43e69443a97e9ded1e652e45b2030460 100644
(file)
--- a/
lib/silcutil/win32/silcwin32thread.c
+++ b/
lib/silcutil/win32/silcwin32thread.c
@@
-19,6
+19,7
@@
*/
/* These routines are based on GLib's WIN32 gthread implementation and
thus credits should go there. */
*/
/* These routines are based on GLib's WIN32 gthread implementation and
thus credits should go there. */
+/* XXX Is the use of Tls necessary?? */
/* $Id$ */
#include "silcincludes.h"
/* $Id$ */
#include "silcincludes.h"
@@
-44,8
+45,7
@@
unsigned __stdcall silc_thread_win32_start(void *context)
SilcWin32Thread thread = (SilcWin32Thread)context;
TlsSetValue(silc_thread_tls, context);
SilcWin32Thread thread = (SilcWin32Thread)context;
TlsSetValue(silc_thread_tls, context);
- thread->start_func(thread->context);
- silc_thread_exit(NULL);
+ silc_thread_exit(thread->start_func(thread->context));
return 0;
}
return 0;
}