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

Alexandre Julliard julliard at winehq.org
Tue Feb 17 08:49:08 CST 2009


Module: wine
Branch: master
Commit: c1a8484089a0203ca105388c497d7bc2819f77ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c1a8484089a0203ca105388c497d7bc2819f77ea

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Feb 17 12:46:44 2009 +0100

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

---

 dlls/ntdll/tests/om.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c
index bde6032..ed3eb46 100644
--- a/dlls/ntdll/tests/om.c
+++ b/dlls/ntdll/tests/om.c
@@ -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);




More information about the wine-cvs mailing list