fix regedit to compile with MSVC
Modified: trunk/reactos/subsys/system/regedit/framewnd.c
Modified: trunk/reactos/subsys/system/regedit/regproc.c
Modified: trunk/reactos/subsys/system/regedit/treeview.c

Modified: trunk/reactos/subsys/system/regedit/framewnd.c
--- trunk/reactos/subsys/system/regedit/framewnd.c	2005-10-17 11:09:35 UTC (rev 18509)
+++ trunk/reactos/subsys/system/regedit/framewnd.c	2005-10-17 11:10:11 UTC (rev 18510)
@@ -28,6 +28,7 @@
 #include <shellapi.h>
 #include <objsel.h>
 #include <objbase.h>
+#include <ole2.h>
 
 #include "main.h"
 #include "regproc.h"

Modified: trunk/reactos/subsys/system/regedit/regproc.c
--- trunk/reactos/subsys/system/regedit/regproc.c	2005-10-17 11:09:35 UTC (rev 18509)
+++ trunk/reactos/subsys/system/regedit/regproc.c	2005-10-17 11:10:11 UTC (rev 18510)
@@ -23,6 +23,7 @@
 #include <limits.h>
 #include <stdio.h>
 #include <ctype.h>
+#include <stdlib.h>
 #include <windows.h>
 #include <winnt.h>
 #include <winreg.h>

Modified: trunk/reactos/subsys/system/regedit/treeview.c
--- trunk/reactos/subsys/system/regedit/treeview.c	2005-10-17 11:09:35 UTC (rev 18509)
+++ trunk/reactos/subsys/system/regedit/treeview.c	2005-10-17 11:10:11 UTC (rev 18510)
@@ -124,7 +124,11 @@
     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 @@
     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.  */