Commit f107125b authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

mscms: Fix some wine_todo for GetStandardColorSpaceProfile().

parent 7a044cb3
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment