Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c50d922e
Commit
c50d922e
authored
Sep 10, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Prevent a crash on win95.
parent
631f751f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
icm.c
dlls/gdi32/tests/icm.c
+12
-4
No files found.
dlls/gdi32/tests/icm.c
View file @
c50d922e
...
...
@@ -51,20 +51,28 @@ static void test_GetICMProfileA( HDC dc )
ret
=
GetICMProfileA
(
dc
,
&
size
,
NULL
);
ok
(
!
ret
,
"GetICMProfileA succeeded
\n
"
);
ret
=
GetICMProfileA
(
dc
,
NULL
,
filename
);
ok
(
!
ret
,
"GetICMProfileA succeeded
\n
"
);
size
=
MAX_PATH
;
ret
=
GetICMProfileA
(
NULL
,
&
size
,
filename
);
ok
(
!
ret
,
"GetICMProfileA succeeded
\n
"
);
size
=
0
;
filename
[
0
]
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
GetICMProfileA
(
dc
,
&
size
,
filename
);
error
=
GetLastError
();
ok
(
!
ret
,
"GetICMProfileA succeeded
\n
"
);
ok
(
size
,
"expected size > 0
\n
"
);
ok
(
error
==
ERROR_INSUFFICIENT_BUFFER
,
"got %d, expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
error
);
ok
(
filename
[
0
]
==
0
,
"Expected filename to be empty
\n
"
);
ok
(
error
==
ERROR_INSUFFICIENT_BUFFER
||
error
==
ERROR_SUCCESS
,
/* Win95 */
"got %d, expected ERROR_INSUFFICIENT_BUFFER or ERROR_SUCCESS(Win95)
\n
"
,
error
);
/* Next test will crash on Win95 */
if
(
error
==
ERROR_INSUFFICIENT_BUFFER
)
{
ret
=
GetICMProfileA
(
dc
,
NULL
,
filename
);
ok
(
!
ret
,
"GetICMProfileA succeeded
\n
"
);
}
size
=
MAX_PATH
;
ret
=
GetICMProfileA
(
dc
,
&
size
,
filename
);
...
...
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