From a1651b5787ccbb485a63f47618b65fc06824f80f Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Mon, 17 Oct 2005 11:10:11 +0000 Subject: [PATCH] fix regedit to compile with MSVC svn path=/trunk/; revision=18510 --- reactos/subsys/system/regedit/framewnd.c | 1 + reactos/subsys/system/regedit/regproc.c | 1 + reactos/subsys/system/regedit/treeview.c | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/regedit/framewnd.c b/reactos/subsys/system/regedit/framewnd.c index 88605958566..0aec560c268 100644 --- a/reactos/subsys/system/regedit/framewnd.c +++ b/reactos/subsys/system/regedit/framewnd.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "main.h" #include "regproc.h" diff --git a/reactos/subsys/system/regedit/regproc.c b/reactos/subsys/system/regedit/regproc.c index 8d1b0de462a..17ab9ff9b23 100644 --- a/reactos/subsys/system/regedit/regproc.c +++ b/reactos/subsys/system/regedit/regproc.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include diff --git a/reactos/subsys/system/regedit/treeview.c b/reactos/subsys/system/regedit/treeview.c index 6c9455b924c..8f7544f628f 100644 --- a/reactos/subsys/system/regedit/treeview.c +++ b/reactos/subsys/system/regedit/treeview.c @@ -124,7 +124,11 @@ 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.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_FIRST); tvins.hParent = hParent; return TreeView_InsertItem(hwndTV, &tvins); @@ -362,7 +366,11 @@ 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.u.item = tvi; +#if defined(__MINGW32__) + tvins.u.item = tvi; +#else + tvins.item = tvi; +#endif tvins.hInsertAfter = (HTREEITEM)TVI_FIRST; tvins.hParent = TVI_ROOT; /* Add the item to the tree view control. */