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
200eb1d3
Commit
200eb1d3
authored
Dec 30, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Trigger the display driver load for CreateCompatibleDC(0).
parent
7c3bb607
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dc.c
dlls/gdi32/dc.c
+3
-2
No files found.
dlls/gdi32/dc.c
View file @
200eb1d3
...
...
@@ -739,7 +739,7 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
{
DC
*
dc
,
*
origDC
;
HDC
ret
;
const
struct
gdi_dc_funcs
*
funcs
=
&
null_driver
;
const
struct
gdi_dc_funcs
*
funcs
;
PHYSDEV
physDev
=
NULL
;
GDI_CheckNotLock
();
...
...
@@ -751,6 +751,7 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
funcs
=
physDev
->
funcs
;
release_dc_ptr
(
origDC
);
}
else
funcs
=
DRIVER_load_driver
(
displayW
);
if
(
!
(
dc
=
alloc_dc_ptr
(
OBJ_MEMDC
)))
return
0
;
...
...
@@ -765,7 +766,7 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
ret
=
dc
->
hSelf
;
if
(
!
funcs
->
pCreateCompatibleDC
(
physDev
,
&
dc
->
physDev
))
if
(
funcs
->
pCreateCompatibleDC
&&
!
funcs
->
pCreateCompatibleDC
(
physDev
,
&
dc
->
physDev
))
{
WARN
(
"creation aborted by device
\n
"
);
free_dc_ptr
(
dc
);
...
...
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