Selaa lähdekoodia

TXMLDocument use from Issue 2249 on a background thread needs CoInitialize

Source commit: 47791b7b57890789e4b08f7758053f38e13dc057
Martin Prikryl 1 vuosi sitten
vanhempi
sitoutus
c10a05b5bd
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      source/core/Queue.cpp

+ 3 - 0
source/core/Queue.cpp

@@ -2673,6 +2673,9 @@ void __fastcall TTerminalThread::ProcessEvent()
   DebugAssert(FEvent != NULL);
   DebugAssert(FException == NULL);
 
+  // Needed at least for TXMLDocument use in TS3FileSystem
+  CoInitialize(NULL);
+
   try
   {
     FAction(NULL);