From 52183f916c01e029d48f95d47b16062af227d8a9 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 30 Mar 2021 20:09:34 +0200 Subject: [PATCH] dxdiagn: Use nameless unions. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/dxdiagn/Makefile.in | 1 - dlls/dxdiagn/provider.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/dxdiagn/Makefile.in b/dlls/dxdiagn/Makefile.in index db44ea3a40e..5099f01461a 100644 --- a/dlls/dxdiagn/Makefile.in +++ b/dlls/dxdiagn/Makefile.in @@ -1,6 +1,5 @@ MODULE = dxdiagn.dll IMPORTS = strmiids dxguid uuid d3d9 ddraw dsound version ole32 oleaut32 user32 advapi32 -EXTRADEFS = -DWINE_NO_NAMELESS_EXTENSION EXTRADLLFLAGS = -mno-cygwin diff --git a/dlls/dxdiagn/provider.c b/dlls/dxdiagn/provider.c index f68fa7f243c..aaffb5c213d 100644 --- a/dlls/dxdiagn/provider.c +++ b/dlls/dxdiagn/provider.c @@ -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++;