mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fix regedit to compile with MSVC
svn path=/trunk/; revision=18510
This commit is contained in:
parent
da83fe4dcc
commit
a1651b5787
3 changed files with 11 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue