mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[MSCMS_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70048
This commit is contained in:
parent
5aa2d2cc8a
commit
60505b44a7
1 changed files with 37 additions and 0 deletions
|
@ -35,6 +35,8 @@ static HMODULE huser32;
|
|||
|
||||
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 @@ static BOOL init_function_ptrs( void )
|
|||
{
|
||||
GETFUNCPTR( AssociateColorProfileWithDeviceA )
|
||||
GETFUNCPTR( CloseColorProfile )
|
||||
GETFUNCPTR( CreateMultiProfileTransform )
|
||||
GETFUNCPTR( DeleteColorTransform )
|
||||
GETFUNCPTR( DisassociateColorProfileFromDeviceA )
|
||||
GETFUNCPTR( GetColorDirectoryA )
|
||||
GETFUNCPTR( GetColorDirectoryW )
|
||||
|
@ -1334,6 +1338,38 @@ static BOOL have_profile(void)
|
|||
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 @@ START_TEST(profile)
|
|||
test_UninstallColorProfileW( testprofileW );
|
||||
|
||||
test_AssociateColorProfileWithDeviceA( testprofile );
|
||||
test_CreateMultiProfileTransform( standardprofile, testprofile );
|
||||
|
||||
if (testprofile) DeleteFileA( testprofile );
|
||||
FreeLibrary( huser32 );
|
||||
|
|
Loading…
Reference in a new issue