summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-24 19:03:52 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-24 19:27:56 +0300
commit955e8047a7e312f93fb2b0611df017ac8acb59ab (patch)
tree8f2caf1ad7e1042e80edd157b792cfe09d06990f /src
parent3a032d453eb46a6c191bebb2f49e4ca708085186 (diff)
this return value is needed
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/proto_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/proto_utils.cpp b/src/mir_app/src/proto_utils.cpp
index dcb3d051fa..6a43e8736d 100644
--- a/src/mir_app/src/proto_utils.cpp
+++ b/src/mir_app/src/proto_utils.cpp
@@ -165,9 +165,9 @@ MIR_APP_DLL(void) ProtoCreateServiceParam(PROTO_INTERFACE *pThis, const char* sz
/////////////////////////////////////////////////////////////////////////////////////////
// protocol events
-MIR_APP_DLL(void) ProtoHookEvent(PROTO_INTERFACE *pThis, const char* szEvent, ProtoEventFunc handler)
+MIR_APP_DLL(HANDLE) ProtoHookEvent(PROTO_INTERFACE *pThis, const char* szEvent, ProtoEventFunc handler)
{
- ::HookEventObj(szEvent, (MIRANDAHOOKOBJ)*(void**)&handler, pThis);
+ return ::HookEventObj(szEvent, (MIRANDAHOOKOBJ)*(void**)&handler, pThis);
}
MIR_APP_DLL(HANDLE) ProtoCreateHookableEvent(PROTO_INTERFACE *pThis, const char* szName)