Fixed bad check

This commit is contained in:
Hardening 2014-05-02 22:45:38 +02:00
parent 09c9181f8d
commit 965eefe04e

View File

@ -138,7 +138,7 @@ static BOOL rdpsnd_server_recv_formats(RdpsndServerContext* context, wStream* s)
}
context->client_formats = (AUDIO_FORMAT *)calloc(context->num_client_formats, sizeof(AUDIO_FORMAT));
if (context->client_formats)
if (!context->client_formats)
return FALSE;
for (i = 0; i < context->num_client_formats; i++)