Andrew Talbot : comctl32/tests: Write-strings warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 30 05:56:46 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 5ca5c8489e0d339c1eeb73eb4c5b083a22b62135
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5ca5c8489e0d339c1eeb73eb4c5b083a22b62135
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Mon May 29 17:26:51 2006 +0100
comctl32/tests: Write-strings warnings fix.
---
dlls/comctl32/tests/treeview.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index 06e9332..b71be91 100644
--- a/dlls/comctl32/tests/treeview.c
+++ b/dlls/comctl32/tests/treeview.c
@@ -70,25 +70,27 @@ static void IdentifyItem(HTREEITEM hItem
static void FillRoot(void)
{
TVINSERTSTRUCTA ins;
+ static CHAR root[] = "Root",
+ child[] = "Child";
Clear();
- AddItem('A');
+ AddItem('A');
ins.hParent = TVI_ROOT;
ins.hInsertAfter = TVI_ROOT;
U(ins).item.mask = TVIF_TEXT;
- U(ins).item.pszText = "Root";
+ U(ins).item.pszText = root;
hRoot = TreeView_InsertItem(hTree, &ins);
assert(hRoot);
-
+
AddItem('B');
ins.hParent = hRoot;
ins.hInsertAfter = TVI_FIRST;
U(ins).item.mask = TVIF_TEXT;
- U(ins).item.pszText = "Child";
+ U(ins).item.pszText = child;
hChild = TreeView_InsertItem(hTree, &ins);
assert(hChild);
AddItem('.');
-
+
ok(!strcmp(sequence, "AB."), "Item creation\n");
}
More information about the wine-cvs
mailing list