mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 08:24:11 -06:00
9.06 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
829409452d
commit
c99f3ebdd6
+9
-1
@@ -13,7 +13,15 @@ namespace NCOM {
|
||||
class CComInitializer
|
||||
{
|
||||
public:
|
||||
CComInitializer() { CoInitialize(NULL);};
|
||||
CComInitializer()
|
||||
{
|
||||
#ifdef UNDER_CE
|
||||
CoInitializeEx(NULL, COINIT_MULTITHREADED);
|
||||
#else
|
||||
// it's single thread. Do we need multithread?
|
||||
CoInitialize(NULL);
|
||||
#endif
|
||||
};
|
||||
~CComInitializer() { CoUninitialize(); };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user