From ec9c456d35fe33211713e5dda40f44f4148098ee Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 18 Oct 2005 23:43:51 +0000 Subject: [PATCH] fix anonymous union problem svn path=/trunk/; revision=18579 --- reactos/subsys/system/regedit/treeview.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/reactos/subsys/system/regedit/treeview.c b/reactos/subsys/system/regedit/treeview.c index 418ef8ed237..7fa5276d3a2 100644 --- a/reactos/subsys/system/regedit/treeview.c +++ b/reactos/subsys/system/regedit/treeview.c @@ -124,11 +124,7 @@ static HTREEITEM AddEntryToTree(HWND hwndTV, HTREEITEM hParent, LPTSTR label, HK tvi.iSelectedImage = Image_Open; tvi.cChildren = dwChildren; tvi.lParam = (LPARAM)hKey; -#if defined(__MINGW32__) - tvins.u.item = tvi; -#else - tvins.item = tvi; -#endif + tvins.DUMMYUNIONNAME.item = tvi; tvins.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_FIRST); tvins.hParent = hParent; return TreeView_InsertItem(hwndTV, &tvins); @@ -366,11 +362,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPTSTR pHostName) tvi.cChildren = 5; /* Save the heading level in the item's application-defined data area. */ tvi.lParam = (LPARAM)NULL; -#if defined(__MINGW32__) - tvins.u.item = tvi; -#else - tvins.item = tvi; -#endif + tvins.DUMMYUNIONNAME.item = tvi; tvins.hInsertAfter = (HTREEITEM)TVI_FIRST; tvins.hParent = TVI_ROOT; /* Add the item to the tree view control. */