fix anonymous union problem Modified: trunk/reactos/subsys/system/regedit/treeview.c _____
Modified: trunk/reactos/subsys/system/regedit/treeview.c --- trunk/reactos/subsys/system/regedit/treeview.c 2005-10-18 23:34:34 UTC (rev 18578) +++ trunk/reactos/subsys/system/regedit/treeview.c 2005-10-18 23:43:51 UTC (rev 18579) @@ -124,11 +124,7 @@
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 @@ 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. */