Fix comctl32/tests/treeview.c compilation with the PSDK
Francois Gouget
fgouget at free.fr
Wed Aug 10 07:09:15 CDT 2005
The latest Windows PSDK only defines TreeView_InsertItem() and does not
have a macro called TreeView_InsertItemA(). So if we want the treeview.c
test to compile with the PSDK it must not use TreeView_InsertItemA().
Changelog:
* dlls/comctl32/tests/treeview.c
Francois Gouget <fgouget at free.fr>
The PSDK does not define a TreeView_InsertItemA() macro so use
TreeView_InsertItem() instead.
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
The nice thing about meditation is that it makes doing nothing quite respectable
-- Paul Dean
-------------- next part --------------
Index: dlls/comctl32/tests/treeview.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/tests/treeview.c,v
retrieving revision 1.3
diff -u -p -r1.3 treeview.c
--- dlls/comctl32/tests/treeview.c 6 Jul 2005 15:46:47 -0000 1.3
+++ dlls/comctl32/tests/treeview.c 28 Jul 2005 13:04:13 -0000
@@ -77,7 +77,7 @@ static void FillRoot(void)
ins.hInsertAfter = TVI_ROOT;
U(ins).item.mask = TVIF_TEXT;
U(ins).item.pszText = "Root";
- hRoot = TreeView_InsertItemA(hTree, &ins);
+ hRoot = TreeView_InsertItem(hTree, &ins);
assert(hRoot);
AddItem('B');
@@ -85,7 +85,7 @@ static void FillRoot(void)
ins.hInsertAfter = TVI_FIRST;
U(ins).item.mask = TVIF_TEXT;
U(ins).item.pszText = "Child";
- hChild = TreeView_InsertItemA(hTree, &ins);
+ hChild = TreeView_InsertItem(hTree, &ins);
assert(hChild);
AddItem('.');
More information about the wine-patches
mailing list