advapi32/tests: Avoid sizeof in traces.

This commit is contained in:
Alexandre Julliard 2008-11-07 13:34:11 +01:00
parent 1c3e81bf5e
commit adc09cc1b4

View File

@ -750,8 +750,7 @@ static void test_FileSecurity(void)
"was expected to fail for '%s'\n", file); "was expected to fail for '%s'\n", file);
ok (GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetFileSecurityA " ok (GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetFileSecurityA "
"returned %d; expected ERROR_INSUFFICIENT_BUFFER\n", GetLastError()); "returned %d; expected ERROR_INSUFFICIENT_BUFFER\n", GetLastError());
ok (retSize > sizeof (SECURITY_DESCRIPTOR), "GetFileSecurityA " ok (retSize > sizeof (SECURITY_DESCRIPTOR), "GetFileSecurityA returned size %d\n", retSize);
"returned size %d; expected > %d\n", retSize, sizeof (SECURITY_DESCRIPTOR));
sdSize = retSize; sdSize = retSize;
sd = HeapAlloc (GetProcessHeap (), 0, sdSize); sd = HeapAlloc (GetProcessHeap (), 0, sdSize);
@ -787,8 +786,7 @@ static void test_FileSecurity(void)
"was expected to fail for '%s'\n", path); "was expected to fail for '%s'\n", path);
ok (GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetFileSecurityA " ok (GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetFileSecurityA "
"returned %d; expected ERROR_INSUFFICIENT_BUFFER\n", GetLastError()); "returned %d; expected ERROR_INSUFFICIENT_BUFFER\n", GetLastError());
ok (retSize > sizeof (SECURITY_DESCRIPTOR), "GetFileSecurityA " ok (retSize > sizeof (SECURITY_DESCRIPTOR), "GetFileSecurityA returned size %d\n", retSize);
"returned size %d; expected > %d\n", retSize, sizeof (SECURITY_DESCRIPTOR));
sdSize = retSize; sdSize = retSize;
sd = HeapAlloc (GetProcessHeap (), 0, sdSize); sd = HeapAlloc (GetProcessHeap (), 0, sdSize);