Browse Source

win-dshow: Don't call DisableThreadLibraryCalls in virtualcam

Per MSDN: Do not call this function from a DLL that is linked to the static C
run-time library (CRT). The static CRT requires DLL_THREAD_ATTACH and
DLL_THREAD_DETATCH notifications to function properly.
Richard Stanway 5 years ago
parent
commit
5c8587eab3
1 changed files with 0 additions and 1 deletions
  1. 0 1
      plugins/win-dshow/virtualcam-module/virtualcam-module.cpp

+ 0 - 1
plugins/win-dshow/virtualcam-module/virtualcam-module.cpp

@@ -287,7 +287,6 @@ void logcallback(DShow::LogType, const wchar_t *msg, void *)
 BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID)
 {
 	if (reason == DLL_PROCESS_ATTACH) {
-		DisableThreadLibraryCalls(inst);
 #ifdef ENABLE_LOGGING
 		DShow::SetLogCallback(logcallback, nullptr);
 #endif