Browse Source

Fix the previous change.

Zoltan Varga 15 years ago
parent
commit
150aa825d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mcs/class/corlib/System.Threading/Thread.cs

+ 1 - 1
mcs/class/corlib/System.Threading/Thread.cs

@@ -1023,7 +1023,7 @@ namespace System.Threading {
 			[ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
 			get {
 				// Fastpath
-				if (internal_thread != null && internal_thread.managed_id != null)
+				if (internal_thread != null && internal_thread.managed_id != 0)
 					return internal_thread.managed_id;
 
 				if (Internal.managed_id == 0) {