[PATCH 4/4] ntdll/tests: Fix a copy-paste error.

Zebediah Figura z.figura12 at gmail.com
Thu Jul 16 20:00:37 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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 03d97b2143b..f68827c7180 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();
-- 
2.27.0




More information about the wine-devel mailing list