Commit c3bf8b88 authored by Kai Blin's avatar Kai Blin Committed by Alexandre Julliard

msacm32: Fix comment and remove unneeded if check (Coverity).

Thanks to Alex Villacís Lasso for comments.
parent 386bb905
...@@ -426,11 +426,11 @@ LRESULT WINAPI acmDriverMessage(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARA ...@@ -426,11 +426,11 @@ LRESULT WINAPI acmDriverMessage(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARA
} }
if (pAlias != NULL) { if (pAlias != NULL) {
unsigned int iStructSize = 16; /* DRVCONFIGINFO is only 12 bytes long, but native msacm
/* This verification is required because DRVCONFIGINFO is 12 bytes * reports a 16-byte structure to codecs, so allocate 16 bytes,
long, yet native msacm reports a 16-byte structure to codecs. * just to be on the safe side.
*/ */
if (iStructSize < sizeof(DRVCONFIGINFO)) iStructSize = sizeof(DRVCONFIGINFO); const unsigned int iStructSize = 16;
pConfigInfo = HeapAlloc(MSACM_hHeap, 0, iStructSize); pConfigInfo = HeapAlloc(MSACM_hHeap, 0, iStructSize);
if (!pConfigInfo) { if (!pConfigInfo) {
ERR("OOM while supplying DRVCONFIGINFO for DRV_CONFIGURE, using NULL\n"); ERR("OOM while supplying DRVCONFIGINFO for DRV_CONFIGURE, using NULL\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment