mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fix unchecked CreateMutex calls
This commit is contained in:
@@ -142,11 +142,14 @@ int wf_rdpsnd_unlock()
|
||||
|
||||
BOOL wf_peer_rdpsnd_init(wfPeerContext* context)
|
||||
{
|
||||
wfInfo* wfi;
|
||||
wfInfo* wfi = wf_info_get_instance();
|
||||
|
||||
wfi = wf_info_get_instance();
|
||||
if (!wfi)
|
||||
return FALSE;
|
||||
|
||||
if (!(wfi->snd_mutex = CreateMutex(NULL, FALSE, NULL)))
|
||||
return FALSE;
|
||||
|
||||
wfi->snd_mutex = CreateMutex(NULL, FALSE, NULL);
|
||||
context->rdpsnd = rdpsnd_server_context_new(context->vcm);
|
||||
context->rdpsnd->data = context;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user