Commit 2dc1c967 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 9679766e
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment