ntdll/tests: Fix a crash on some Vista boxes.

This commit is contained in:
Paul Vriens 2010-02-24 15:33:01 +01:00 committed by Alexandre Julliard
parent 2432b0f6b9
commit 563785dfc2
1 changed files with 25 additions and 20 deletions

View File

@ -735,6 +735,8 @@ static void test_symlinks(void)
"wrong len %u\n", len );
pNtClose( key );
if (0) /* crashes the Windows kernel on some Vista systems */
{
/* reopen the link from itself */
attr.RootDirectory = link;
@ -757,10 +759,13 @@ static void test_symlinks(void)
ok( len == FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION,Data) + target_len - sizeof(WCHAR),
"wrong len %u\n", len );
pNtClose( key );
}
if (0) /* crashes the Windows kernel in most versions */
{
attr.RootDirectory = link;
attr.Attributes = 0;
attr.ObjectName = &null_str;
status = pNtOpenKey( &key, KEY_ALL_ACCESS, &attr );
ok( status == STATUS_SUCCESS, "NtOpenKey failed: 0x%08x\n", status );
len = sizeof(buffer);