Index: /trunk/src/VBox/Runtime/common/misc/thread.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/misc/thread.cpp	(revision 83124)
+++ /trunk/src/VBox/Runtime/common/misc/thread.cpp	(revision 83125)
@@ -669,5 +669,5 @@
 #ifdef IPRT_WITH_GENERIC_TLS
     rtThreadTlsDestruction(pThread);
-#elif defined(RT_OS_WINDOWS)
+#elif defined(RT_OS_WINDOWS) && defined(IN_RING3)
     rtThreadWinTlsDestruction();
 #endif
