Author: akhaldi
Date: Mon Nov 23 09:03:09 2015
New Revision: 70048
URL:
http://svn.reactos.org/svn/reactos?rev=70048&view=rev
Log:
[MSCMS_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
Modified:
trunk/rostests/winetests/mscms/profile.c
Modified: trunk/rostests/winetests/mscms/profile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/mscms/profile.c…
==============================================================================
--- trunk/rostests/winetests/mscms/profile.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/mscms/profile.c [iso-8859-1] Mon Nov 23 09:03:09 2015
@@ -35,6 +35,8 @@
static BOOL (WINAPI *pAssociateColorProfileWithDeviceA)(PCSTR,PCSTR,PCSTR);
static BOOL (WINAPI *pCloseColorProfile)(HPROFILE);
+static HTRANSFORM (WINAPI
*pCreateMultiProfileTransform)(PHPROFILE,DWORD,PDWORD,DWORD,DWORD,DWORD);
+static BOOL (WINAPI *pDeleteColorTransform)(HTRANSFORM);
static BOOL (WINAPI *pDisassociateColorProfileFromDeviceA)(PCSTR,PCSTR,PCSTR);
static BOOL (WINAPI *pGetColorDirectoryA)(PCHAR,PCHAR,PDWORD);
static BOOL (WINAPI *pGetColorDirectoryW)(PWCHAR,PWCHAR,PDWORD);
@@ -68,6 +70,8 @@
{
GETFUNCPTR( AssociateColorProfileWithDeviceA )
GETFUNCPTR( CloseColorProfile )
+ GETFUNCPTR( CreateMultiProfileTransform )
+ GETFUNCPTR( DeleteColorTransform )
GETFUNCPTR( DisassociateColorProfileFromDeviceA )
GETFUNCPTR( GetColorDirectoryA )
GETFUNCPTR( GetColorDirectoryW )
@@ -1334,6 +1338,38 @@
return TRUE;
}
+static void test_CreateMultiProfileTransform( char *standardprofile, char *testprofile )
+{
+ PROFILE profile;
+ HPROFILE handle[2];
+ HTRANSFORM transform;
+ DWORD intents[2] = { INTENT_PERCEPTUAL, INTENT_PERCEPTUAL };
+
+ if (testprofile)
+ {
+ profile.dwType = PROFILE_FILENAME;
+ profile.pProfileData = standardprofile;
+ profile.cbDataSize = strlen(standardprofile);
+
+ handle[0] = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
+ ok( handle[0] != NULL, "got %u\n", GetLastError() );
+
+ profile.dwType = PROFILE_FILENAME;
+ profile.pProfileData = testprofile;
+ profile.cbDataSize = strlen(testprofile);
+
+ handle[1] = pOpenColorProfileA( &profile, PROFILE_READ, 0, OPEN_EXISTING );
+ ok( handle[1] != NULL, "got %u\n", GetLastError() );
+
+ transform = pCreateMultiProfileTransform( handle, 2, intents, 2, 0, 0 );
+ ok( transform != NULL, "got %u\n", GetLastError() );
+
+ pDeleteColorTransform( transform );
+ pCloseColorProfile( handle[0] );
+ pCloseColorProfile( handle[1] );
+ }
+}
+
START_TEST(profile)
{
UINT len;
@@ -1443,6 +1479,7 @@
test_UninstallColorProfileW( testprofileW );
test_AssociateColorProfileWithDeviceA( testprofile );
+ test_CreateMultiProfileTransform( standardprofile, testprofile );
if (testprofile) DeleteFileA( testprofile );
FreeLibrary( huser32 );