mfplat: Fix potential invalid memory access (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-03-06 12:42:11 +03:00 committed by Alexandre Julliard
parent 842207e260
commit cb4d45adfd
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,8 @@ static HRESULT grab_queue(DWORD queue_id, struct queue **ret)
MFASYNC_WORKQUEUE_TYPE queue_type;
struct queue_handle *entry;
*ret = NULL;
if (!system_queues[SYS_QUEUE_STANDARD].pool)
return MF_E_SHUTDOWN;