advapi32/tests: Don't test the contents of an uninitialized buffer.

This commit is contained in:
Alexandre Julliard 2007-07-31 22:35:30 +02:00
parent 4ed64d381c
commit a0dd646eef
1 changed files with 4 additions and 4 deletions

View File

@ -685,11 +685,11 @@ static void test_get_servicekeyname(void)
GetLastError() == ERROR_IO_PENDING /* W2K */ ||
GetLastError() == 0xdeadbeef /* NT4, XP, Vista */,
"Expected ERROR_SUCCESS, ERROR_IO_PENDING or 0xdeadbeef, got %d\n", GetLastError());
todo_wine
if (ret)
{
ok(lstrlen(servicename) == tempsize/2,
"Expected the buffer to be twice the length of the string\n") ;
ok(!lstrcmpi(servicename, spooler), "Expected %s, got %s\n", spooler, servicename);
ok(lstrlen(servicename) == tempsize/2,
"Expected the buffer to be twice the length of the string\n") ;
ok(!lstrcmpi(servicename, spooler), "Expected %s, got %s\n", spooler, servicename);
}
CloseServiceHandle(scm_handle);