ntdll/tests: Don't pass uninitialized object attributes to symlink functions.

This commit is contained in:
Alexandre Julliard 2009-02-17 12:46:44 +01:00
parent 2274fc1ade
commit c1a8484089

View file

@ -536,6 +536,7 @@ static void test_symboliclink(void)
IO_STATUS_BLOCK iosb;
/* No name and/or no attributes */
InitializeObjectAttributes(&attr, NULL, 0, 0, NULL);
SYMLNK_TEST_CREATE_OPEN_FAILURE2(NULL, "", "", STATUS_ACCESS_VIOLATION, STATUS_INVALID_PARAMETER)
status = pNtCreateSymbolicLinkObject(&h, SYMBOLIC_LINK_QUERY, NULL, NULL);