mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
Fixed PubSub, return error on NULL
This commit is contained in:
@@ -185,7 +185,9 @@ int PubSub_OnEvent(wPubSub* pubSub, const char* EventName, void* context, const
|
||||
size_t index;
|
||||
wEventType* event;
|
||||
int status = -1;
|
||||
WINPR_ASSERT(pubSub);
|
||||
|
||||
if (!pubSub)
|
||||
return -1;
|
||||
WINPR_ASSERT(e);
|
||||
|
||||
if (pubSub->synchronized)
|
||||
|
||||
Reference in New Issue
Block a user