From: Elizabeth Figura <zfigura(a)codeweavers.com> --- dlls/ir50_32/tests/ir50_32.c | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dlls/ir50_32/tests/ir50_32.c b/dlls/ir50_32/tests/ir50_32.c index 8817423279e..00106fb2700 100644 --- a/dlls/ir50_32/tests/ir50_32.c +++ b/dlls/ir50_32/tests/ir50_32.c @@ -91,7 +91,15 @@ static void test_formats(void) out->bmiHeader.biWidth = 640; ret = ICDecompressQuery(hic, &in, out); ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + out->bmiHeader.biHeight = 480; + ret = ICDecompressQuery(hic, &in, out); + todo_wine ok(ret == ICERR_OK, "Got %Id.\n", ret); + out->bmiHeader.biWidth = 160; + out->bmiHeader.biHeight = 120; + ret = ICDecompressQuery(hic, &in, out); + ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); out->bmiHeader.biWidth = 320; + out->bmiHeader.biHeight = 240; out->bmiHeader.biBitCount = 8; ret = ICDecompressQuery(hic, &in, out); @@ -137,6 +145,37 @@ static void test_formats(void) ret = ICDecompressEnd(hic); ok(ret == ICERR_OK, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 320, 240, NULL, NULL, 0, 0, 0, 0); + todo_wine ok(ret == ICERR_OK, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 32, 24, NULL, NULL, 0, 0, 0, 0); + todo_wine ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 0, 0, NULL, NULL, 0, 0, 0, 0); + todo_wine ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 20, 0, 320, 240, NULL, NULL, 0, 0, 0, 0); + todo_wine ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 20, 320, 240, NULL, NULL, 0, 0, 0, 0); + todo_wine ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 320, 240, &out->bmiHeader, NULL, 0, 0, 0, 0); + todo_wine ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 320, 240, &out->bmiHeader, NULL, 0, 0, 320, 240); + todo_wine ok(ret == ICERR_OK, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 320, 240, &out->bmiHeader, NULL, 0, 0, 160, 120); + todo_wine ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + + out->bmiHeader.biWidth = 640; + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 320, 240, &out->bmiHeader, NULL, 0, 0, 640, 240); + todo_wine ok(ret == ICERR_BADPARAM, "Got %Id.\n", ret); + out->bmiHeader.biHeight = 480; + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 320, 240, &out->bmiHeader, NULL, 0, 0, 640, 480); + todo_wine ok(ret == ICERR_OK, "Got %Id.\n", ret); + ret = ICDecompressExQuery(hic, 0, &in, NULL, 0, 0, 320, 240, &out->bmiHeader, NULL, 20, 20, 320, 240); + todo_wine ok(ret == ICERR_OK, "Got %Id.\n", ret); + + ret = ICDecompressExBegin(hic, 0, &in, NULL, 0, 0, 320, 240, &out->bmiHeader, NULL, 20, 20, 320, 240); + todo_wine ok(ret == ICERR_OK, "Got %Id.\n", ret); + ret = ICDecompressExEnd(hic); + todo_wine ok(ret == ICERR_OK, "Got %Id.\n", ret); + ret = ICClose(hic); ok(!ret, "Got %Id.\n", ret); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9718