comctl32/tests: Write-strings warnings fix.
This commit is contained in:
parent
4f62bf79dc
commit
5ca5c8489e
|
@ -70,25 +70,27 @@ static void IdentifyItem(HTREEITEM hItem)
|
||||||
static void FillRoot(void)
|
static void FillRoot(void)
|
||||||
{
|
{
|
||||||
TVINSERTSTRUCTA ins;
|
TVINSERTSTRUCTA ins;
|
||||||
|
static CHAR root[] = "Root",
|
||||||
|
child[] = "Child";
|
||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
AddItem('A');
|
AddItem('A');
|
||||||
ins.hParent = TVI_ROOT;
|
ins.hParent = TVI_ROOT;
|
||||||
ins.hInsertAfter = TVI_ROOT;
|
ins.hInsertAfter = TVI_ROOT;
|
||||||
U(ins).item.mask = TVIF_TEXT;
|
U(ins).item.mask = TVIF_TEXT;
|
||||||
U(ins).item.pszText = "Root";
|
U(ins).item.pszText = root;
|
||||||
hRoot = TreeView_InsertItem(hTree, &ins);
|
hRoot = TreeView_InsertItem(hTree, &ins);
|
||||||
assert(hRoot);
|
assert(hRoot);
|
||||||
|
|
||||||
AddItem('B');
|
AddItem('B');
|
||||||
ins.hParent = hRoot;
|
ins.hParent = hRoot;
|
||||||
ins.hInsertAfter = TVI_FIRST;
|
ins.hInsertAfter = TVI_FIRST;
|
||||||
U(ins).item.mask = TVIF_TEXT;
|
U(ins).item.mask = TVIF_TEXT;
|
||||||
U(ins).item.pszText = "Child";
|
U(ins).item.pszText = child;
|
||||||
hChild = TreeView_InsertItem(hTree, &ins);
|
hChild = TreeView_InsertItem(hTree, &ins);
|
||||||
assert(hChild);
|
assert(hChild);
|
||||||
AddItem('.');
|
AddItem('.');
|
||||||
|
|
||||||
ok(!strcmp(sequence, "AB."), "Item creation\n");
|
ok(!strcmp(sequence, "AB."), "Item creation\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue