Dmitry Timoshkov : gdiplus: Add a test for 'value' pointer in the PropertyItem structure.

Alexandre Julliard julliard at winehq.org
Mon Jul 2 13:22:00 CDT 2012


Module: wine
Branch: master
Commit: eb564a316017e9e484cdaec55c76bd636b4eabed
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eb564a316017e9e484cdaec55c76bd636b4eabed

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Jul  2 12:58:10 2012 +0900

gdiplus: Add a test for 'value' pointer in the PropertyItem structure.

---

 dlls/gdiplus/tests/image.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index b6cc322..c49276d 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -3093,8 +3093,9 @@ static void test_tiff_properties(void)
         prop_item = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, prop_size);
         status = GdipGetPropertyItem(image, prop_id[i], prop_size, prop_item);
         expect(Ok, status);
+        ok(prop_item->value == prop_item + 1, "expected item->value %p, got %p\n", prop_item + 1, prop_item->value);
         ok(td[i].type == prop_item->type ||
-           /* Win7 stopped using proper but not documented types, and it's
+           /* Win7 stopped using proper but not documented types, and it
               looks broken since TypeFloat and TypeDouble now reported as
               TypeUndefined, and signed types reported as unsigned. */
            broken(prop_item->type == documented_type(td[i].type)),




More information about the wine-cvs mailing list