Skip to content

Commit

Permalink
Merge pull request #26 from unknownv2/dev-tests
Browse files Browse the repository at this point in the history
fix: Call DetourBarrierThreadDetach for thread detach instead of thread attach
  • Loading branch information
unknownv2 authored Nov 6, 2018
2 parents c5fd152 + f613678 commit d340dac
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 d340dac

Please sign in to comment.