diff options
Diffstat (limited to 'plugins/FlashAvatars')
-rw-r--r-- | plugins/FlashAvatars/src/cflash.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/FlashAvatars/src/cflash.cpp b/plugins/FlashAvatars/src/cflash.cpp index e4eb392101..711a3b2f1c 100644 --- a/plugins/FlashAvatars/src/cflash.cpp +++ b/plugins/FlashAvatars/src/cflash.cpp @@ -494,14 +494,13 @@ static int statusChanged(WPARAM wParam, LPARAM lParam) static int eventAdded(WPARAM wParam, LPARAM lParam)
{
- DBEVENTINFO dbei = {0};
- dbei.cbSize = sizeof(dbei);
- dbei.cbBlob = CallService(MS_DB_EVENT_GETBLOBSIZE, (WPARAM)lParam , 0);
+ DBEVENTINFO dbei = { sizeof(dbei) };
+ dbei.cbBlob = db_event_getBlobSize((HANDLE)lParam);
if (dbei.cbBlob == 0xFFFFFFFF)
return 0;
dbei.pBlob = new BYTE[dbei.cbBlob];
- CallService(MS_DB_EVENT_GET, (WPARAM)lParam, (LPARAM) & dbei);
+ db_event_get((HANDLE)lParam, &dbei);
if (dbei.eventType == EVENTTYPE_MESSAGE && !(dbei.flags & DBEF_READ)) {
Lock l(cs);
|