winhttp/tests: Add a couple of return value tests (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-01-31 23:31:46 +03:00 committed by Alexandre Julliard
parent 9679766e2e
commit 2dc1c967d5
1 changed files with 2 additions and 0 deletions

View File

@ -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 );