diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-03 12:31:44 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-03 12:32:36 +0200 |
commit | 48cb59cb5687303a608903259bb10eb9e6a9ee36 (patch) | |
tree | e7ef1bda96cac9fb9ed59ce7a29477a3d262c50e /include/m_protoint.h | |
parent | 89a1dbcab6947a68d81dd048e5d91cebdb0c2510 (diff) |
CloudFile: thread functions rewritten using PROTO::ForkThread
Diffstat (limited to 'include/m_protoint.h')
-rw-r--r-- | include/m_protoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/m_protoint.h b/include/m_protoint.h index f32b07983b..56063d0cd1 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -260,7 +260,7 @@ template<class T> struct PROTO : public PROTO_INTERFACE ::ProtoHookEvent(this, name, (ProtoEventFunc)pFunc); }
typedef void(__cdecl T::*MyThreadFunc)(void*);
- __forceinline void ForkThread(MyThreadFunc pFunc, void *param) {
+ __forceinline void ForkThread(MyThreadFunc pFunc, void *param = nullptr) {
::ProtoForkThread(this, (ProtoThreadFunc)pFunc, param); }
HANDLE __forceinline ForkThreadEx(MyThreadFunc pFunc, void *param, UINT *pThreadId) {
return ::ProtoForkThreadEx(this, (ProtoThreadFunc)pFunc, param, pThreadId); }
|