mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
mscms: Fix some wine_todo for GetStandardColorSpaceProfile().
This commit is contained in:
parent
7a044cb365
commit
f107125b3b
@ -346,7 +346,17 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
|
||||
|
||||
TRACE( "( 0x%08lx, %p, %p )\n", id, profile, size );
|
||||
|
||||
if (machine || !size) return FALSE;
|
||||
if (machine)
|
||||
{
|
||||
SetLastError(ERROR_NOT_SUPPORTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!size)
|
||||
{
|
||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
sizeW = *size * sizeof(WCHAR);
|
||||
|
||||
@ -401,7 +411,18 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
|
||||
|
||||
TRACE( "( 0x%08lx, %p, %p )\n", id, profile, size );
|
||||
|
||||
if (machine || !size) return FALSE;
|
||||
if (machine)
|
||||
{
|
||||
SetLastError(ERROR_NOT_SUPPORTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!size)
|
||||
{
|
||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GetColorDirectoryW( machine, rgbprofile, &len );
|
||||
|
||||
switch (id)
|
||||
|
@ -525,7 +525,6 @@ static void test_GetStandardColorSpaceProfileA(void)
|
||||
/* Parameter checks */
|
||||
|
||||
/* Single invalid parameter checks */
|
||||
todo_wine
|
||||
fail_GSCSPA(machine, SPACE_RGB, newprofile, &size, sizeP, (GLE == ERROR_NOT_SUPPORTED));
|
||||
todo_wine
|
||||
fail_GSCSPA(NULL, (DWORD)-1, newprofile, &size, sizeP, (GLE == ERROR_FILE_NOT_FOUND));
|
||||
@ -537,7 +536,6 @@ static void test_GetStandardColorSpaceProfileA(void)
|
||||
fail_GSCSPA(NULL, SPACE_RGB, newprofile, &size, 0, (GLE == ERROR_MORE_DATA || GLE == ERROR_INSUFFICIENT_BUFFER));
|
||||
|
||||
/* Several invalid parameter checks */
|
||||
todo_wine
|
||||
fail_GSCSPA(machine, 0, newprofile, &size, 0, (GLE == ERROR_INVALID_PARAMETER || GLE == ERROR_NOT_SUPPORTED));
|
||||
todo_wine
|
||||
fail_GSCSPA(NULL, 0, newprofile, NULL, 0, (GLE == ERROR_INVALID_PARAMETER));
|
||||
@ -604,7 +602,6 @@ static void test_GetStandardColorSpaceProfileW(void)
|
||||
/* Parameter checks */
|
||||
|
||||
/* Single invalid parameter checks */
|
||||
todo_wine
|
||||
fail_GSCSPW(machineW, SPACE_RGB, newprofile, &size, sizeP, (GLE == ERROR_NOT_SUPPORTED));
|
||||
todo_wine
|
||||
fail_GSCSPW(NULL, (DWORD)-1, newprofile, &size, sizeP, (GLE == ERROR_FILE_NOT_FOUND));
|
||||
@ -616,7 +613,6 @@ static void test_GetStandardColorSpaceProfileW(void)
|
||||
fail_GSCSPW(NULL, SPACE_RGB, newprofile, &size, 0, (GLE == ERROR_MORE_DATA || GLE == ERROR_INSUFFICIENT_BUFFER));
|
||||
|
||||
/* Several invalid parameter checks */
|
||||
todo_wine
|
||||
fail_GSCSPW(machineW, 0, newprofile, &size, 0, (GLE == ERROR_INVALID_PARAMETER || GLE == ERROR_NOT_SUPPORTED));
|
||||
todo_wine
|
||||
fail_GSCSPW(NULL, 0, newprofile, NULL, 0, (GLE == ERROR_INVALID_PARAMETER));
|
||||
|
Loading…
Reference in New Issue
Block a user