From bb9030cb7808551dd4b6860d279d4c11e5e3b03d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 17 Jul 2023 11:35:47 +0200 Subject: [PATCH] winemac.drv: Use nameless unions/structs. --- dlls/winemac.drv/dragdrop.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/winemac.drv/dragdrop.c b/dlls/winemac.drv/dragdrop.c index 45615c68b71..bbf74ac80c2 100644 --- a/dlls/winemac.drv/dragdrop.c +++ b/dlls/winemac.drv/dragdrop.c @@ -20,8 +20,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define NONAMELESSUNION - #include "ntstatus.h" #define WIN32_NO_STATUS #include "macdrv_dll.h" @@ -167,9 +165,9 @@ static HRESULT WINAPI dddo_GetData(IDataObject* iface, FORMATETC* formatEtc, STG if (SUCCEEDED(hr)) { medium->tymed = TYMED_HGLOBAL; - medium->u.hGlobal = get_pasteboard_data(This->pasteboard, formatEtc->cfFormat); + medium->hGlobal = get_pasteboard_data(This->pasteboard, formatEtc->cfFormat); medium->pUnkForRelease = NULL; - hr = medium->u.hGlobal ? S_OK : E_OUTOFMEMORY; + hr = medium->hGlobal ? S_OK : E_OUTOFMEMORY; } return hr;