[PATCH] winhttp/tests: Add a couple of return value tests (Coverity).
Nikolay Sivov
nsivov at codeweavers.com
Thu Jan 31 14:31:46 CST 2019
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/winhttp/tests/winhttp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 91a9d539aa..3a28acf913 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -3206,6 +3206,7 @@ static void test_multiple_reads(int port)
char *buf = HeapAlloc( GetProcessHeap(), 0, len + 1 );
ret = WinHttpReadData( req, buf, len, &bytes_read );
+ ok(ret, "WinHttpReadData failed: %u.\n", GetLastError());
ok( len == bytes_read, "only got %u of %u available\n", bytes_read, len );
HeapFree( GetProcessHeap(), 0, buf );
@@ -4699,6 +4700,7 @@ static void test_chunked_read(void)
char *buf = HeapAlloc( GetProcessHeap(), 0, len + 1 );
ret = WinHttpReadData( req, buf, len, &bytes_read );
+ ok(ret, "WinHttpReadData failed: %u.\n", GetLastError());
buf[bytes_read] = 0;
trace( "WinHttpReadData -> %d %u\n", ret, bytes_read );
--
2.20.1
More information about the wine-devel
mailing list