mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
fix regedit to compile with MSVC
svn path=/trunk/; revision=18510
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <shellapi.h>
|
||||
#include <objsel.h>
|
||||
#include <objbase.h>
|
||||
#include <ole2.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "regproc.h"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user