Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f107125b
Commit
f107125b
authored
Jan 13, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jan 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Fix some wine_todo for GetStandardColorSpaceProfile().
parent
7a044cb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
profile.c
dlls/mscms/profile.c
+23
-2
profile.c
dlls/mscms/tests/profile.c
+0
-4
No files found.
dlls/mscms/profile.c
View file @
f107125b
...
...
@@ -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
)
...
...
dlls/mscms/tests/profile.c
View file @
f107125b
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment