Skip to content

Commit

Permalink
fix: Call DetourBarrierThreadDetach for thread detach instead of thre…
Browse files Browse the repository at this point in the history
…ad attach
  • Loading branch information
unknownv2 committed Nov 6, 2018
1 parent 3bbba89 commit f613678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dll/corehook/corehook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved)

DetourCriticalInitialize();
}
else if (dwReason == DLL_THREAD_ATTACH) {
else if (dwReason == DLL_THREAD_DETACH) {
DetourBarrierThreadDetach();
}
else if (dwReason == DLL_PROCESS_DETACH) {
Expand Down

0 comments on commit f613678

Please sign in to comment.