From e63eb30a01e3369af183205931170ae429d6ca5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Tue, 25 Jun 2024 14:45:18 +0200 Subject: [PATCH] Fix tests for x86 arch. --- test/tvfs_test/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tvfs_test/main.cpp b/test/tvfs_test/main.cpp index 85c1f10..0c61a43 100644 --- a/test/tvfs_test/main.cpp +++ b/test/tvfs_test/main.cpp @@ -474,7 +474,7 @@ TEST_F(USVFSTest, NtQueryObjectVirtualFile) NTSTATUS res; char buffer[2048]; - res = usvfs::hook_NtQueryObject(hdl, ObjectNameInformation, buffer, 8, &requiredLength); + res = usvfs::hook_NtQueryObject(hdl, ObjectNameInformation, buffer, sizeof(OBJECT_NAME_INFORMATION) - 1, &requiredLength); ASSERT_EQ(STATUS_INFO_LENGTH_MISMATCH, res); ASSERT_EQ(expectedLength, requiredLength);