Fix unchecked CreateMutex calls

This commit is contained in:
Norbert Federa
2015-05-05 17:25:17 +02:00
parent 063c1bc806
commit c77def3048
4 changed files with 30 additions and 13 deletions

View File

@@ -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;