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
0482c8e8
Commit
0482c8e8
authored
Apr 14, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix CreateCompatibleDC to reject invalid DCs.
parent
2004d2b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
dc.c
dlls/gdi32/dc.c
+1
-0
dc.c
dlls/gdi32/tests/dc.c
+0
-4
No files found.
dlls/gdi32/dc.c
View file @
0482c8e8
...
...
@@ -785,6 +785,7 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
release_dc_ptr
(
origDC
);
if
(
funcs
)
funcs
=
DRIVER_get_driver
(
funcs
);
}
else
if
(
hdc
)
return
0
;
if
(
!
funcs
&&
!
(
funcs
=
DRIVER_load_driver
(
displayW
)))
return
0
;
...
...
dlls/gdi32/tests/dc.c
View file @
0482c8e8
...
...
@@ -248,15 +248,11 @@ static void test_CreateCompatibleDC(void)
bRet
=
DeleteDC
(
hDC
);
ok
(
bRet
==
TRUE
,
"DeleteDC returned %u
\n
"
,
bRet
);
todo_wine
{
/* Try to create a DC compatible to the deleted DC. This has to fail */
hNewDC
=
CreateCompatibleDC
(
hDC
);
ok
(
hNewDC
==
NULL
,
"CreateCompatibleDC returned %p
\n
"
,
hNewDC
);
}
}
START_TEST
(
dc
)
{
test_savedc
();
...
...
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