ntdll/tests: Fix a test failure on NT4.

This commit is contained in:
Paul Vriens 2010-01-08 22:29:20 +01:00 committed by Alexandre Julliard
parent 21b6c3202a
commit acfada959b
1 changed files with 3 additions and 1 deletions

View File

@ -677,7 +677,9 @@ static void test_query_object(void)
ok( status == STATUS_SUCCESS, "NtQueryObject failed %x\n", status ); ok( status == STATUS_SUCCESS, "NtQueryObject failed %x\n", status );
ok( len > sizeof(UNICODE_STRING), "unexpected len %u\n", len ); ok( len > sizeof(UNICODE_STRING), "unexpected len %u\n", len );
str = (UNICODE_STRING *)buffer; str = (UNICODE_STRING *)buffer;
ok( sizeof(UNICODE_STRING) + str->Length + sizeof(WCHAR) == len, "unexpected len %u\n", len ); ok( sizeof(UNICODE_STRING) + str->Length + sizeof(WCHAR) == len ||
broken(sizeof(UNICODE_STRING) + str->Length == len), /* NT4 */
"unexpected len %u\n", len );
trace( "got %s len %u\n", wine_dbgstr_w(str->Buffer), len ); trace( "got %s len %u\n", wine_dbgstr_w(str->Buffer), len );
pNtClose( handle ); pNtClose( handle );
} }