Skip to content

Commit f613678

Browse files
committed
fix: Call DetourBarrierThreadDetach for thread detach instead of thread attach
1 parent 3bbba89 commit f613678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dll/corehook/corehook.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved)
1717

1818
DetourCriticalInitialize();
1919
}
20-
else if (dwReason == DLL_THREAD_ATTACH) {
20+
else if (dwReason == DLL_THREAD_DETACH) {
2121
DetourBarrierThreadDetach();
2222
}
2323
else if (dwReason == DLL_PROCESS_DETACH) {

0 commit comments

Comments
 (0)