mscms: Fix some wine_todo for GetStandardColorSpaceProfile().

This commit is contained in:
Saulius Krasuckas 2006-01-13 14:09:04 +01:00 committed by Alexandre Julliard
parent 7a044cb365
commit f107125b3b
2 changed files with 23 additions and 6 deletions

View File

@ -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)

View File

@ -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));