Skip to content

Commit e919282

Browse files
committed
In the DllMain function, it is not recommended to call CoInitializeEx. Moreover, the call occurs in xrCore::Initialize.
1 parent bd50031 commit e919282

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/xrCore/xrCore.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD ul_reason_for_call, LPVOID lpvRese
223223
//. LogFile.reserve (256);
224224
break;
225225
case DLL_THREAD_ATTACH:
226-
if (!strstr(GetCommandLine(), "-editor"))
227-
CoInitializeEx(nullptr, COINIT_MULTITHREADED);
228226
timeBeginPeriod(1);
229227
break;
230228
case DLL_THREAD_DETACH: break;

0 commit comments

Comments
 (0)