summaryrefslogtreecommitdiff
path: root/plugins/StatusChange/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StatusChange/src/main.cpp')
-rw-r--r--plugins/StatusChange/src/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/StatusChange/src/main.cpp b/plugins/StatusChange/src/main.cpp
index 1b28339f68..012dabeeaa 100644
--- a/plugins/StatusChange/src/main.cpp
+++ b/plugins/StatusChange/src/main.cpp
@@ -46,13 +46,11 @@ void LoadOptions()
static int StatusChangeGetMessage(WPARAM wParam, LPARAM lParam)
{
HANDLE hDbEvent = (HANDLE)lParam;
- DBEVENTINFO dbe;
int status;
BOOL read, send, change_status;
- dbe.cbSize = sizeof(dbe);
- dbe.cbBlob = 0;
- CallService(MS_DB_EVENT_GET, (WPARAM)hDbEvent, (LPARAM)&dbe);
+ DBEVENTINFO dbe = { sizeof(dbe) };
+ db_event_get(hDbEvent, &dbe);
status = (int)CallProtoService(dbe.szModule, PS_GETSTATUS, 0, 0);
if(!status)