Selaa lähdekoodia

2005-05-16 Gonzalo Paniagua Javier <[email protected]>

	* Thread.cs: first check for null, then set in_currentculture.


svn path=/trunk/mcs/; revision=44592
Gonzalo Paniagua Javier 20 vuotta sitten
vanhempi
sitoutus
bfa50fb63c

+ 4 - 0
mcs/class/corlib/System.Threading/ChangeLog

@@ -1,3 +1,7 @@
+2005-05-16 Gonzalo Paniagua Javier <[email protected]>
+
+	* Thread.cs: first check for null, then set in_currentculture.
+
 2005-05-12  Lluis Sanchez Gual  <[email protected]>
 
 	* Thread.cs: Moved all checks done inside sync_lock to unmanaged code.

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

@@ -385,11 +385,10 @@ namespace System.Threading
 			
 			[SecurityPermission (SecurityAction.Demand, ControlThread=true)]
 			set {
-				in_currentculture = true;
-				
 				if (value == null)
 					throw new ArgumentNullException ("value");
 
+				in_currentculture = true;
 				try {
 					BinaryFormatter bf = new BinaryFormatter();
 					MemoryStream ms = new MemoryStream ();