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
ecebfb49
Commit
ecebfb49
authored
Feb 20, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Feb 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Fix four todos for GetStandardColorSpaceProfile[AW].
parent
44e942fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
profile.c
dlls/mscms/profile.c
+4
-4
profile.c
dlls/mscms/tests/profile.c
+0
-4
No files found.
dlls/mscms/profile.c
View file @
ecebfb49
...
@@ -348,13 +348,13 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
...
@@ -348,13 +348,13 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
if
(
machine
)
if
(
machine
)
{
{
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
return
FALSE
;
}
}
if
(
!
size
)
if
(
!
size
)
{
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -413,13 +413,13 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
...
@@ -413,13 +413,13 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
if
(
machine
)
if
(
machine
)
{
{
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
return
FALSE
;
}
}
if
(
!
size
)
if
(
!
size
)
{
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
return
FALSE
;
}
}
...
...
dlls/mscms/tests/profile.c
View file @
ecebfb49
...
@@ -601,7 +601,6 @@ static void test_GetStandardColorSpaceProfileA(void)
...
@@ -601,7 +601,6 @@ static void test_GetStandardColorSpaceProfileA(void)
fail_GSCSP
(
A
,
machine
,
SPACE_RGB
,
newprofile
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_NOT_SUPPORTED
));
fail_GSCSP
(
A
,
machine
,
SPACE_RGB
,
newprofile
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_NOT_SUPPORTED
));
todo_wine
todo_wine
fail_GSCSP
(
A
,
NULL
,
(
DWORD
)
-
1
,
newprofile
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
fail_GSCSP
(
A
,
NULL
,
(
DWORD
)
-
1
,
newprofile
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
newprofile
,
NULL
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
newprofile
,
NULL
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
if
(
query_colorspace
(
SPACE_RGB
))
if
(
query_colorspace
(
SPACE_RGB
))
...
@@ -619,7 +618,6 @@ static void test_GetStandardColorSpaceProfileA(void)
...
@@ -619,7 +618,6 @@ static void test_GetStandardColorSpaceProfileA(void)
/* Several invalid parameter checks */
/* Several invalid parameter checks */
fail_GSCSP
(
A
,
machine
,
0
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
||
GLE
==
ERROR_NOT_SUPPORTED
));
fail_GSCSP
(
A
,
machine
,
0
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
||
GLE
==
ERROR_NOT_SUPPORTED
));
todo_wine
fail_GSCSP
(
A
,
NULL
,
0
,
newprofile
,
NULL
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
fail_GSCSP
(
A
,
NULL
,
0
,
newprofile
,
NULL
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
todo_wine
todo_wine
fail_GSCSP
(
A
,
NULL
,
0
,
NULL
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
fail_GSCSP
(
A
,
NULL
,
0
,
NULL
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
...
@@ -670,14 +668,12 @@ static void test_GetStandardColorSpaceProfileW(void)
...
@@ -670,14 +668,12 @@ static void test_GetStandardColorSpaceProfileW(void)
fail_GSCSP
(
W
,
NULL
,
(
DWORD
)
-
1
,
newprofile
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
fail_GSCSP
(
W
,
NULL
,
(
DWORD
)
-
1
,
newprofile
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
todo_wine
todo_wine
fail_GSCSP
(
W
,
NULL
,
SPACE_RGB
,
NULL
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
fail_GSCSP
(
W
,
NULL
,
SPACE_RGB
,
NULL
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
todo_wine
fail_GSCSP
(
W
,
NULL
,
SPACE_RGB
,
newprofile
,
NULL
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
fail_GSCSP
(
W
,
NULL
,
SPACE_RGB
,
newprofile
,
NULL
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
todo_wine
todo_wine
fail_GSCSP
(
W
,
NULL
,
SPACE_RGB
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_MORE_DATA
||
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
fail_GSCSP
(
W
,
NULL
,
SPACE_RGB
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_MORE_DATA
||
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
/* Several invalid parameter checks */
/* Several invalid parameter checks */
fail_GSCSP
(
W
,
machineW
,
0
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
||
GLE
==
ERROR_NOT_SUPPORTED
));
fail_GSCSP
(
W
,
machineW
,
0
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
||
GLE
==
ERROR_NOT_SUPPORTED
));
todo_wine
fail_GSCSP
(
W
,
NULL
,
0
,
newprofile
,
NULL
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
fail_GSCSP
(
W
,
NULL
,
0
,
newprofile
,
NULL
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
todo_wine
todo_wine
fail_GSCSP
(
W
,
NULL
,
0
,
NULL
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
fail_GSCSP
(
W
,
NULL
,
0
,
NULL
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
...
...
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