aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-08-16 19:24:19 +0000
committerChristopher Faylor <me@cgf.cx>2012-08-16 19:24:19 +0000
commit00caa48b917d9c300c70403b3a9ea665a8f67d26 (patch)
treeed2f7973a5c25ff49542b98396bc5f8e105f65a7 /winsup/cygwin
parentd01efdbe6ef73e31eca061c031bab84c614a3fe4 (diff)
downloadnewlib-00caa48b917d9c300c70403b3a9ea665a8f67d26.zip
newlib-00caa48b917d9c300c70403b3a9ea665a8f67d26.tar.gz
newlib-00caa48b917d9c300c70403b3a9ea665a8f67d26.tar.bz2
* cygtls.cc (_cygtls::operator HANDLE): Reverse '?' test stupidity.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/cygtls.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 44d2117..a732d73 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2012-08-16 Christopher Faylor <me.cygwin2012@cgf.cx>
+ * cygtls.cc (_cygtls::operator HANDLE): Reverse '?' test stupidity.
+
+2012-08-16 Christopher Faylor <me.cygwin2012@cgf.cx>
+
* cygheap.cc (init_cygheap::find_tls): Don't consider unitialized
threads.
* cygtls.cc (_cygtls::operator HANDLE): Return NULL when tid is not
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 98b63ae..d009da1 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -226,7 +226,7 @@ public:
void signal_debugger (int) __attribute__ ((regparm(2)));
#ifdef CYGTLS_HANDLE
- operator HANDLE () const {return tid ? NULL : tid->win32_obj_id;}
+ operator HANDLE () const {return tid ? tid->win32_obj_id : NULL;}
#endif
void set_siginfo (struct sigpacket *) __attribute__ ((regparm (3)));
int call_signal_handler () __attribute__ ((regparm (1)));