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
6aa3d8a4
Commit
6aa3d8a4
authored
Jan 12, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jan 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Null ID can make GetStandardColorSpaceProfile*() succeed.
parent
11a0c8cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
profile.c
dlls/mscms/tests/profile.c
+23
-2
No files found.
dlls/mscms/tests/profile.c
View file @
6aa3d8a4
...
@@ -502,6 +502,16 @@ do {
...
@@ -502,6 +502,16 @@ do {
"GetStandardColorSpaceProfileA() returns %d (GLE=%ld)\n", ret, GLE ); \
"GetStandardColorSpaceProfileA() returns %d (GLE=%ld)\n", ret, GLE ); \
} while (0)
} while (0)
#define test_GSCSPA(pMachName, dwProfID, pProfName, pdwSz, dwSz, GLE_OK) \
do { \
size = dwSz; \
SetLastError(0); \
ret = pGetStandardColorSpaceProfileA(pMachName, dwProfID, pProfName, pdwSz);\
GLE = GetLastError(); \
ok( (!ret && GLE_OK) || (ret && !lstrcmpiA( pProfName, "" )), \
"GetStandardColorSpaceProfileA() returns %d (GLE=%ld)\n", ret, GLE ); \
} while (0)
static
void
test_GetStandardColorSpaceProfileA
(
void
)
static
void
test_GetStandardColorSpaceProfileA
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
...
@@ -533,7 +543,7 @@ static void test_GetStandardColorSpaceProfileA(void)
...
@@ -533,7 +543,7 @@ static void test_GetStandardColorSpaceProfileA(void)
todo_wine
todo_wine
fail_GSCSPA
(
NULL
,
0
,
NULL
,
&
size
,
0
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
fail_GSCSPA
(
NULL
,
0
,
NULL
,
&
size
,
0
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
todo_wine
todo_wine
fail
_GSCSPA
(
NULL
,
0
,
newprofile
,
&
size
,
sizeP
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
test
_GSCSPA
(
NULL
,
0
,
newprofile
,
&
size
,
sizeP
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
/* Functional checks */
/* Functional checks */
...
@@ -569,12 +579,23 @@ do {
...
@@ -569,12 +579,23 @@ do {
"GetStandardColorSpaceProfileW() returns %d (GLE=%ld)\n", ret, GLE ); \
"GetStandardColorSpaceProfileW() returns %d (GLE=%ld)\n", ret, GLE ); \
} while (0)
} while (0)
#define test_GSCSPW(pMachName, dwProfID, pProfName, pdwSz, dwSz, GLE_OK) \
do { \
size = dwSz; \
SetLastError(0); \
ret = pGetStandardColorSpaceProfileW(pMachName, dwProfID, pProfName, pdwSz);\
GLE = GetLastError(); \
ok( (!ret && GLE_OK) || (ret && !lstrcmpiW( pProfName, emptyW )), \
"GetStandardColorSpaceProfileA() returns %d (GLE=%ld)\n", ret, GLE ); \
} while (0)
static
void
test_GetStandardColorSpaceProfileW
(
void
)
static
void
test_GetStandardColorSpaceProfileW
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
DWORD
size
,
sizeP
,
GLE
;
DWORD
size
,
sizeP
,
GLE
;
WCHAR
oldprofile
[
MAX_PATH
];
WCHAR
oldprofile
[
MAX_PATH
];
WCHAR
newprofile
[
MAX_PATH
];
WCHAR
newprofile
[
MAX_PATH
];
WCHAR
emptyW
[]
=
{
0
};
sizeP
=
sizeof
(
newprofile
);
sizeP
=
sizeof
(
newprofile
);
...
@@ -600,7 +621,7 @@ static void test_GetStandardColorSpaceProfileW(void)
...
@@ -600,7 +621,7 @@ static void test_GetStandardColorSpaceProfileW(void)
todo_wine
todo_wine
fail_GSCSPW
(
NULL
,
0
,
NULL
,
&
size
,
0
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
fail_GSCSPW
(
NULL
,
0
,
NULL
,
&
size
,
0
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
||
GLE
==
ERROR_FILE_NOT_FOUND
));
todo_wine
todo_wine
fail
_GSCSPW
(
NULL
,
0
,
newprofile
,
&
size
,
sizeP
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
test
_GSCSPW
(
NULL
,
0
,
newprofile
,
&
size
,
sizeP
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
/* Functional checks */
/* Functional checks */
...
...
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