From c0a3cb13e0451da13da4a3bda28520b8e877a5d1 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 8 Aug 2003 21:03:39 +0000 Subject: [PATCH] Fixed build with older compilers. --- programs/regedit/treeview.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/programs/regedit/treeview.c b/programs/regedit/treeview.c index c0366651112..3643c4f51a1 100644 --- a/programs/regedit/treeview.c +++ b/programs/regedit/treeview.c @@ -19,6 +19,9 @@ */ #define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */ + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include #include #include @@ -90,7 +93,7 @@ static HTREEITEM AddEntryToTree(HWND hwndTV, HTREEITEM hParent, LPTSTR label, HK tvi.iSelectedImage = Image_Open; tvi.cChildren = dwChildren; tvi.lParam = (LPARAM)hKey; - tvins.item = tvi; + tvins.u.item = tvi; if (hKey) tvins.hInsertAfter = (HTREEITEM)TVI_LAST; else tvins.hInsertAfter = (HTREEITEM)TVI_SORT; tvins.hParent = hParent; @@ -115,7 +118,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; - tvins.item = tvi; + tvins.u.item = tvi; tvins.hInsertAfter = (HTREEITEM)TVI_FIRST; tvins.hParent = TVI_ROOT; /* Add the item to the tree view control. */ -- 2.11.4.GIT