From 8cd2d5df202ec290f0ffbad2efbbc3e0ed71b0ab Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 14 Oct 2015 00:40:29 +0300 Subject: [PATCH] ddraw/tests: Use proper type for return values (PVS-Studio). Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/ddraw/tests/ddrawmodes.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c index a325f86ceb3..13e27328215 100644 --- a/dlls/ddraw/tests/ddrawmodes.c +++ b/dlls/ddraw/tests/ddrawmodes.c @@ -567,13 +567,13 @@ static void setdisplaymode(int i) scrn.right, scrn.bottom, virt.left, virt.top, virt.right, virt.bottom); if (!EqualRect(&scrn, &orig_rect)) { - HRESULT rect_result; + BOOL rect_result, ret; /* Check that the client rect was resized */ - rc = GetClientRect(hwnd, &test); - ok(rc!=0, "GetClientRect returned %x\n", rc); - rc = EqualRect(&scrn, &test); - todo_wine ok(rc!=0, "Fullscreen window has wrong size\n"); + ret = GetClientRect(hwnd, &test); + ok(ret, "GetClientRect returned %d\n", ret); + ret = EqualRect(&scrn, &test); + todo_wine ok(ret, "Fullscreen window has wrong size\n"); /* Check that switching to normal cooperative level does not restore the display mode */