[mscms/tests/profile.c] Fix test

Paul Vriens Paul.Vriens at xs4all.nl
Sat Jul 16 13:53:40 CDT 2005


Hi,

this test fails because size is not set before pSetColorProfileElement
is called (without the patch, the size is only 5, hence '(c) T').

Changelog
  Set size before calling pSetColorProfileElement

Cheers,

Paul.

Index: dlls/mscms/tests/profile.c
===================================================================
RCS file: /home/wine/wine/dlls/mscms/tests/profile.c,v
retrieving revision 1.16
diff -u -p -r1.16 profile.c
--- dlls/mscms/tests/profile.c  15 Jul 2005 10:09:43 -0000      1.16
+++ dlls/mscms/tests/profile.c  16 Jul 2005 18:52:46 -0000
@@ -823,6 +823,8 @@ static void test_SetColorProfileElement(
  
         /* Functional checks */
  
+        size = sizeof(data);
+
         ret = pSetColorProfileElement( handle, tag, 0, &size, data );
         ok( ret, "SetColorProfileElement() failed (%ld)\n", GetLastError() );
  





More information about the wine-patches mailing list