Skip to content

Commit

Permalink
fix stack corruption caused by a wrong calling convention
Browse files Browse the repository at this point in the history
Bug introduced in 298b5b6
  • Loading branch information
cfillion committed Oct 27, 2018
1 parent 8152f46 commit 14681a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <reaper_plugin_functions.h>

#ifdef _WIN32
typedef void (*_tls_callback_type)(HANDLE, DWORD const dwReason, LPVOID);
typedef void (__stdcall *_tls_callback_type)(HANDLE, DWORD const dwReason, LPVOID);
extern "C" extern const _tls_callback_type __dyn_tls_dtor_callback;
#endif

Expand Down

0 comments on commit 14681a9

Please sign in to comment.