Added #ifdef to allow non-WINCE windows builds to work again... WINCE_NSPRPUB_RELEASE_4_2_BETA1
authorrpotts%netscape.com
Mon, 01 Apr 2002 23:53:23 +0000
branchWINCE_NSPRPUB_RELEASE_4_2_BETA1
changeset 2323 7053546d500ada067fa1192211e39d279a2c29b6
parent 2280 52dda25e27d19f0fa333d084e8009e38e29e4ca8
child 2330 f5a7abdfa302bf23252ca0f423b81e6badad70d9
push idunknown
push userunknown
push dateunknown
Added #ifdef to allow non-WINCE windows builds to work again...
pr/src/md/windows/w95thred.c
--- a/pr/src/md/windows/w95thred.c
+++ b/pr/src/md/windows/w95thred.c
@@ -213,23 +213,28 @@ void
 
     if (thread->md.blocked_sema) {
         rv = CloseHandle(thread->md.blocked_sema);
         PR_ASSERT(rv);
         thread->md.blocked_sema = 0;
     }
 
     if (thread->md.handle) {
+#if !defined(WINCE)
+        rv = CloseHandle(thread->md.handle);
+        PR_ASSERT(rv);
+#else
         if(PR_FALSE == thread->md.noCloseHandle) {
             rv = CloseHandle(thread->md.handle);
             PR_ASSERT(rv);
         }
         else {
             thread->md.noCloseHandle = PR_FALSE; /* reused? insurance.... */
         }
+#endif
         thread->md.handle = 0;
     }
 }
 
 void
 _PR_MD_EXIT_THREAD(PRThread *thread)
 {
     _PR_MD_CLEAN_THREAD(thread);