From: Stephen Toub Date: Fri, 1 Mar 2019 09:35:45 +0000 (-0500) Subject: Another small tweak to fix Thread behavioral difference (#22943) X-Git-Tag: accepted/tizen/unified/20190813.215958~61^2~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a26aabef798c3a0c42b38c75e0a14a0cb253594f;p=platform%2Fupstream%2Fcoreclr.git Another small tweak to fix Thread behavioral difference (#22943) To match existing behavior: https://github.com/dotnet/corefx/blob/5dc8132370532804a5381b90e2ce87d6c52b61f6/src/Common/src/CoreLib/System/Threading/Thread.Unix.cs#L13 --- diff --git a/src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs b/src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs index feedb50..46ca988 100644 --- a/src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs +++ b/src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs @@ -408,7 +408,7 @@ namespace System.Threading #if FEATURE_COMINTEROP_APARTMENT_SUPPORT SetApartmentStateHelper(state, false); #else // !FEATURE_COMINTEROP_APARTMENT_SUPPORT - false; + state == ApartmentState.Unknown; #endif // FEATURE_COMINTEROP_APARTMENT_SUPPORT #if FEATURE_COMINTEROP_APARTMENT_SUPPORT