Module: wine Branch: master Commit: 80ee53bb90f13f59b638ef40df064050b98c3118 URL: https://gitlab.winehq.org/wine/wine/-/commit/80ee53bb90f13f59b638ef40df06405...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Jul 18 19:56:26 2023 +0200
mmsystem: Use nameless unions/structs.
---
dlls/mmsystem.dll16/mmsystem.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dlls/mmsystem.dll16/mmsystem.c b/dlls/mmsystem.dll16/mmsystem.c index 59480292224..fc3b6f413bd 100644 --- a/dlls/mmsystem.dll16/mmsystem.c +++ b/dlls/mmsystem.dll16/mmsystem.c @@ -29,8 +29,6 @@ #include <stdarg.h> #include <string.h>
-#define NONAMELESSUNION - #include "windef.h" #include "winbase.h" #include "mmsystem.h" @@ -471,8 +469,8 @@ UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16 hmix,
mlcA.cbStruct = sizeof(mlcA); mlcA.dwLineID = lpmlc16->dwLineID; - mlcA.u.dwControlID = lpmlc16->u.dwControlID; - mlcA.u.dwControlType = lpmlc16->u.dwControlType; + mlcA.dwControlID = lpmlc16->u.dwControlID; + mlcA.dwControlType = lpmlc16->u.dwControlType; mlcA.cControls = lpmlc16->cControls; mlcA.cbmxctrl = sizeof(MIXERCONTROLA); mlcA.pamxctrl = HeapAlloc(GetProcessHeap(), 0, @@ -482,8 +480,8 @@ UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16 hmix,
if (ret == MMSYSERR_NOERROR) { lpmlc16->dwLineID = mlcA.dwLineID; - lpmlc16->u.dwControlID = mlcA.u.dwControlID; - lpmlc16->u.dwControlType = mlcA.u.dwControlType; + lpmlc16->u.dwControlID = mlcA.dwControlID; + lpmlc16->u.dwControlType = mlcA.dwControlType; lpmlc16->cControls = mlcA.cControls;
lpmc16 = MapSL(lpmlc16->pamxctrl);