ntdll-LZNT1_Compression: Fix warnings in tests on x86_64.

This commit is contained in:
Sebastian Lackner 2015-01-24 09:42:35 +01:00
parent cc484c6d23
commit ed9a66862f

View File

@ -1,4 +1,4 @@
From ab32af3b920cce657cdb5b41bc04b6a77c9181cf Mon Sep 17 00:00:00 2001
From cced4a3d6938fe54b949dcff24a645d6f3e8b015 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Thu, 30 Oct 2014 17:41:11 +0100
Subject: ntdll/tests: Add tests for Rtl[Decompress|Compress]Buffer and
@ -9,7 +9,7 @@ Subject: ntdll/tests: Add tests for Rtl[Decompress|Compress]Buffer and
1 file changed, 740 insertions(+)
diff --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c
index e8eb04a..3ddb76a 100644
index e8eb04a..2f6c421 100644
--- a/dlls/ntdll/tests/rtl.c
+++ b/dlls/ntdll/tests/rtl.c
@@ -92,6 +92,10 @@ static NTSTATUS (WINAPI *pRtlIpv4StringToAddressA)(PCSTR, BOOLEAN, PCSTR *, IN_
@ -755,7 +755,7 @@ index e8eb04a..3ddb76a 100644
+ ok(status == STATUS_SUCCESS, "got wrong status 0x%08x\n", status);
+ ok(final_size == sizeof(test_buffer), "got wrong final_size %d\n", final_size);
+ ok(!memcmp(buf2, test_buffer, sizeof(test_buffer)), "got wrong decoded data\n");
+ ok(buf2[sizeof(test_buffer)] == 0x11, "buf[%d] overwritten\n", sizeof(test_buffer));
+ ok(buf2[sizeof(test_buffer)] == 0x11, "buf[%u] overwritten\n", (DWORD)sizeof(test_buffer));
+
+ /* buffer too small */
+ final_size = 0xdeadbeef;
@ -778,5 +778,5 @@ index e8eb04a..3ddb76a 100644
+ test_RtlCompressBuffer();
}
--
2.1.2
2.2.1