Commit 563785df authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

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

parent 2432b0f6
...@@ -735,6 +735,8 @@ static void test_symlinks(void) ...@@ -735,6 +735,8 @@ static void test_symlinks(void)
"wrong len %u\n", len ); "wrong len %u\n", len );
pNtClose( key ); pNtClose( key );
if (0) /* crashes the Windows kernel on some Vista systems */
{
/* reopen the link from itself */ /* reopen the link from itself */
attr.RootDirectory = link; attr.RootDirectory = link;
...@@ -757,10 +759,13 @@ static void test_symlinks(void) ...@@ -757,10 +759,13 @@ static void test_symlinks(void)
ok( len == FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION,Data) + target_len - sizeof(WCHAR), ok( len == FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION,Data) + target_len - sizeof(WCHAR),
"wrong len %u\n", len ); "wrong len %u\n", len );
pNtClose( key ); pNtClose( key );
}
if (0) /* crashes the Windows kernel in most versions */ if (0) /* crashes the Windows kernel in most versions */
{ {
attr.RootDirectory = link;
attr.Attributes = 0; attr.Attributes = 0;
attr.ObjectName = &null_str;
status = pNtOpenKey( &key, KEY_ALL_ACCESS, &attr ); status = pNtOpenKey( &key, KEY_ALL_ACCESS, &attr );
ok( status == STATUS_SUCCESS, "NtOpenKey failed: 0x%08x\n", status ); ok( status == STATUS_SUCCESS, "NtOpenKey failed: 0x%08x\n", status );
len = sizeof(buffer); len = sizeof(buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment