ntdll/tests: Fix some more failures on restricted Windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b0140f8ee2
commit
3e33f6c2d9
|
@ -1099,8 +1099,11 @@ static void test_query_object(void)
|
|||
|
||||
pRtlCreateUnicodeStringFromAsciiz( &path, "\\REGISTRY\\Machine\\Software\\Classes" );
|
||||
status = pNtCreateKey( &handle, KEY_ALL_ACCESS, &attr, 0, 0, 0, 0 );
|
||||
ok( handle != 0, "NtCreateKey failed status %x\n", status );
|
||||
ok( status == STATUS_SUCCESS || status == STATUS_ACCESS_DENIED,
|
||||
"NtCreateKey failed status %x\n", status );
|
||||
pRtlFreeUnicodeString( &path );
|
||||
if (status == STATUS_SUCCESS)
|
||||
{
|
||||
len = 0;
|
||||
status = pNtQueryObject( handle, ObjectNameInformation, buffer, sizeof(buffer), &len );
|
||||
ok( status == STATUS_SUCCESS , "NtQueryObject returned %x\n", status );
|
||||
|
@ -1118,6 +1121,7 @@ static void test_query_object(void)
|
|||
trace( "got %s len %u\n", wine_dbgstr_w(str->Buffer), len );
|
||||
pNtClose( handle );
|
||||
}
|
||||
}
|
||||
|
||||
static void test_type_mismatch(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue