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:
parent
842207e260
commit
cb4d45adfd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue