Commit 5ca5c848 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

comctl32/tests: Write-strings warnings fix.

parent 4f62bf79
......@@ -70,13 +70,15 @@ static void IdentifyItem(HTREEITEM hItem)
static void FillRoot(void)
{
TVINSERTSTRUCTA ins;
static CHAR root[] = "Root",
child[] = "Child";
Clear();
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);
......@@ -84,7 +86,7 @@ static void FillRoot(void)
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('.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment