webservices/tests: Don't crash when array is not allocated
André Hentschel
nerv at dawncrow.de
Mon Jul 2 08:38:34 CDT 2018
Am 01.07.2018 um 11:40 schrieb André Hentschel:
> Signed-off-by: André Hentschel <nerv at dawncrow.de>
> ---
> dlls/webservices/tests/proxy.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/dlls/webservices/tests/proxy.c b/dlls/webservices/tests/proxy.c
> index f529779..33d2a59 100644
> --- a/dlls/webservices/tests/proxy.c
> +++ b/dlls/webservices/tests/proxy.c
> @@ -515,8 +515,11 @@ static void test_WsCall( int port )
> ok( hr == S_OK, "got %08x\n", hr );
> ok( !lstrcmpW( out.str, testW ), "wrong data\n" );
> ok( out.count == 2, "got %u\n", out.count );
> - ok( out.val[0] == 1, "got %u\n", out.val[0] );
> - ok( out.val[1] == 2, "got %u\n", out.val[1] );
> + if (out.count >= 2)
> + {
> + ok( out.val[0] == 1, "got %u\n", out.val[0] );
> + ok( out.val[1] == 2, "got %u\n", out.val[1] );
> + }
>
> hr = WsCloseServiceProxy( proxy, NULL, NULL );
> ok( hr == S_OK, "got %08x\n", hr );
>
Ignore this, it was caused by a bad firewall configuration
More information about the wine-devel
mailing list