2
0
Эх сурвалжийг харах

2009-11-02 Sebastien Pouliot <[email protected]>

	* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
	to true until after the null check and the return statement.


svn path=/trunk/mcs/; revision=145214
Sebastien Pouliot 16 жил өмнө
parent
commit
ccffcae90d

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

@@ -1,3 +1,8 @@
+2009-11-02  Sebastien Pouliot  <[email protected]>
+
+	* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
+	to true until after the null check and the return statement.
+
 2009-11-02  Jérémie Laval  <[email protected]>
 
 	* Parallel.cs: Added fix for Bug #536919.

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

@@ -618,8 +618,6 @@ namespace System.Threading {
 			}
 			
 			set {
-				Internal.in_currentculture = true;
-
 				if (value == null)
 					throw new ArgumentNullException ("value");
 
@@ -627,6 +625,7 @@ namespace System.Threading {
 				if (culture == value)
 					return;
 
+				Internal.in_currentculture = true;
 				try {
 					SetCachedCurrentUICulture (value);