mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
devenum: Fix order of operations bug (Coverity id 709).
This commit is contained in:
parent
a8513a2113
commit
df592b3c3a
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ static void DEVENUM_ReadPinTypes(HKEY hkeyPinKey, REGFILTERPINS *rgPin)
|
|||
|
||||
if (rgPin->nMediaTypes == dwMediaTypeSize)
|
||||
{
|
||||
DWORD dwNewSize = dwMediaTypeSize + (dwMediaTypeSize < 2) ? 1 : dwMediaTypeSize / 2;
|
||||
DWORD dwNewSize = dwMediaTypeSize + (dwMediaTypeSize < 2 ? 1 : dwMediaTypeSize / 2);
|
||||
REGPINTYPES *lpNewMediaType;
|
||||
|
||||
lpNewMediaType = CoTaskMemRealloc(lpMediaType, sizeof(REGPINTYPES) * dwNewSize);
|
||||
|
|
Loading…
Reference in a new issue