Commit a0dd646e authored by Alexandre Julliard's avatar Alexandre Julliard

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

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