Zebediah Figura : ntdll/tests: Fix a copy-paste error.

Alexandre Julliard julliard at winehq.org
Fri Jul 17 16:30:45 CDT 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Jul 16 20:00:37 2020 -0500

ntdll/tests: Fix a copy-paste error.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/om.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c
index 03d97b2143..f68827c718 100644
--- a/dlls/ntdll/tests/om.c
+++ b/dlls/ntdll/tests/om.c
@@ -1040,7 +1040,7 @@ static void test_directory(void)
     pNtClose(h);
     InitializeObjectAttributes(&attr, &str, 0, dir, NULL);
     RtlInitUnicodeString(&str, L"one more level");
-    status = pNtCreateDirectoryObject( &dir, DIRECTORY_QUERY, &attr );
+    status = pNtCreateDirectoryObject( &h, DIRECTORY_QUERY, &attr );
     ok( status == STATUS_SUCCESS, "Failed to create directory %08x\n", status );
     pNtClose(h);
     pNtClose(dir);
@@ -1157,9 +1157,9 @@ static void test_symboliclink(void)
 
     RtlInitUnicodeString( &str, L"\\BaseNamedObjects\\om.c-test\\" );
     status = pNtCreateSymbolicLinkObject( &h, SYMBOLIC_LINK_QUERY, &attr, &target );
-    ok( status == STATUS_OBJECT_NAME_INVALID, "got %#x\n", status );
+    ok( status == STATUS_OBJECT_PATH_NOT_FOUND, "got %#x\n", status );
     status = pNtOpenSymbolicLinkObject( &h, SYMBOLIC_LINK_QUERY, &attr );
-    ok( status == STATUS_OBJECT_NAME_INVALID, "got %#x\n", status );
+    ok( status == STATUS_OBJECT_PATH_NOT_FOUND, "got %#x\n", status );
 
     /* Compound test */
     dir = get_base_dir();




More information about the wine-cvs mailing list