Alex Henrie : comctl32/tests: Mark smaller propsheet buffer as broken.

Alexandre Julliard julliard at winehq.org
Mon Dec 27 16:15:03 CST 2021


Module: wine
Branch: master
Commit: 8fd1bd964606b039c4eedebd1c041d3d613128e3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8fd1bd964606b039c4eedebd1c041d3d613128e3

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Dec 26 20:30:19 2021 -0700

comctl32/tests: Mark smaller propsheet buffer as broken.

Fixes another testbot failure.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/propsheet.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/propsheet.c b/dlls/comctl32/tests/propsheet.c
index b4696112500..f26fb1bd3ca 100644
--- a/dlls/comctl32/tests/propsheet.c
+++ b/dlls/comctl32/tests/propsheet.c
@@ -92,8 +92,11 @@ static int CALLBACK sheet_callback(HWND hwnd, UINT msg, LPARAM lparam)
         size = SizeofResource(module, hrsrc);
         ok(size != 0, "Failed to get size of propsheet dialog resource\n");
         buffer_size = HeapSize(GetProcessHeap(), 0, (void *)lparam);
-        /* Hebrew Windows 10 allocates 2 * size + 8, all others allocate 2 * size */
-        ok(buffer_size >= 2 * size, "Unexpected template buffer size %u, resource size %u\n",
+        /* Hebrew Windows 10 allocates 2 * size + 8,
+         * Arabic Windows 10 allocates 2 * size - 32,
+         * all others allocate exactly 2 * size */
+        ok(buffer_size >= 2 * size || broken(buffer_size == 2 * size - 32),
+                "Unexpected template buffer size %u, resource size %u\n",
                 buffer_size, size);
         break;
       }




More information about the wine-cvs mailing list