Skip to content

Commit

Permalink
Fix tests for x86 arch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 14, 2024
1 parent 1ad2fa4 commit e63eb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tvfs_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e63eb30

Please sign in to comment.