Make programs/regedit/treeview.c compile with older compilers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Changelog:
    Make programs/regedit/treeview.c compile with older compilers.

--- cvs/hq/wine/programs/regedit/treeview.c	Thu Aug  7 12:10:13 2003
+++ wine/programs/regedit/treeview.c	Fri Aug  8 19:31:57 2003
@@ -19,6 +19,9 @@
  */
 
 #define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
+
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
 #include <windows.h>
 #include <commctrl.h>
 #include <stdlib.h>
@@ -90,7 +93,7 @@ static HTREEITEM AddEntryToTree(HWND hwn
     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 hwndT
     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.  */





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux