Commit 52183f91 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

dxdiagn: Use nameless unions.

parent a1e47a31
MODULE = dxdiagn.dll
IMPORTS = strmiids dxguid uuid d3d9 ddraw dsound version ole32 oleaut32 user32 advapi32
EXTRADEFS = -DWINE_NO_NAMELESS_EXTENSION
EXTRADLLFLAGS = -mno-cygwin
......
......@@ -1548,16 +1548,16 @@ static HRESULT fill_filter_data_information(IDxDiagContainerImpl_Container *subc
if (pRF->dwVersion == 1)
{
for (j = 0; j < pRF->u.s1.cPins; j++)
if (pRF->u.s1.rgPins[j].bOutput)
for (j = 0; j < pRF->cPins; j++)
if (pRF->rgPins[j].bOutput)
dwNOutputs++;
else
dwNInputs++;
}
else if (pRF->dwVersion == 2)
{
for (j = 0; j < pRF->u.s2.cPins2; j++)
if (pRF->u.s2.rgPins2[j].dwFlags & REG_PINFLAG_B_OUTPUT)
for (j = 0; j < pRF->cPins2; j++)
if (pRF->rgPins2[j].dwFlags & REG_PINFLAG_B_OUTPUT)
dwNOutputs++;
else
dwNInputs++;
......
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