ntdll/tests: Fix a couple of test failures on limited user accounts.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e395d4e766
commit
b35642f516
|
@ -591,8 +591,9 @@ static void test_NtCreateKey(void)
|
|||
|
||||
pRtlCreateUnicodeStringFromAsciiz( &str, "\\Registry\\Machine\\Software\\Classes" );
|
||||
status = pNtCreateKey( &subkey, am, &attr, 0, 0, 0, 0 );
|
||||
ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
|
||||
pNtClose( subkey );
|
||||
ok( status == STATUS_SUCCESS || status == STATUS_ACCESS_DENIED,
|
||||
"NtCreateKey failed: 0x%08x\n", status );
|
||||
if (!status) pNtClose( subkey );
|
||||
pRtlFreeUnicodeString( &str );
|
||||
|
||||
/* the REGISTRY part is case-sensitive unless OBJ_CASE_INSENSITIVE is specified */
|
||||
|
@ -605,14 +606,16 @@ static void test_NtCreateKey(void)
|
|||
|
||||
pRtlCreateUnicodeStringFromAsciiz( &str, "\\REGISTRY\\Machine\\Software\\Classes" );
|
||||
status = pNtCreateKey( &subkey, am, &attr, 0, 0, 0, 0 );
|
||||
ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
|
||||
pNtClose( subkey );
|
||||
ok( status == STATUS_SUCCESS || status == STATUS_ACCESS_DENIED,
|
||||
"NtCreateKey failed: 0x%08x\n", status );
|
||||
if (!status) pNtClose( subkey );
|
||||
pRtlFreeUnicodeString( &str );
|
||||
|
||||
pRtlCreateUnicodeStringFromAsciiz( &str, "\\REGISTRY\\MACHINE\\SOFTWARE\\CLASSES" );
|
||||
status = pNtCreateKey( &subkey, am, &attr, 0, 0, 0, 0 );
|
||||
ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
|
||||
pNtClose( subkey );
|
||||
ok( status == STATUS_SUCCESS || status == STATUS_ACCESS_DENIED,
|
||||
"NtCreateKey failed: 0x%08x\n", status );
|
||||
if (!status) pNtClose( subkey );
|
||||
pRtlFreeUnicodeString( &str );
|
||||
|
||||
pNtClose(key);
|
||||
|
|
Loading…
Reference in New Issue