ntdll/tests: Fix memory leaks (found by Smatch) and fix a message.

This commit is contained in:
Lionel Debroux 2007-10-20 21:38:35 +02:00 committed by Alexandre Julliard
parent 1a8001af5b
commit 8f49ea21d4
1 changed files with 4 additions and 1 deletions

View File

@ -289,6 +289,8 @@ static void test_RtlInitUnicodeStringEx(void)
ok(uni.Buffer == NULL,
"pRtlInitUnicodeString(&uni, 0) sets Buffer to %p, expected %p\n",
uni.Buffer, NULL);
free(teststring2);
}
@ -1709,7 +1711,8 @@ static void test_RtlIsTextUnicode(void)
flags = IS_TEXT_UNICODE_REVERSE_MASK;
ok(!pRtlIsTextUnicode(be_unicode, sizeof(unicode) + 2, &flags), "Reverse endian should be Unicode\n");
todo_wine ok(flags == 0xc0, "Expected flags 0x70, obtained %x\n", flags);
todo_wine ok(flags == 0xc0, "Expected flags 0xc0, obtained %x\n", flags);
HeapFree(GetProcessHeap(), 0, be_unicode);
}
static const WCHAR szGuid[] = { '{','0','1','0','2','0','3','0','4','-',