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
5f7e4ce6
Commit
5f7e4ce6
authored
May 21, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix refcounting of window DCEs.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e36a7e5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
painting.c
dlls/user32/painting.c
+2
-7
No files found.
dlls/user32/painting.c
View file @
5f7e4ce6
...
...
@@ -311,7 +311,6 @@ static struct dce *get_window_dce( HWND hwnd )
{
win
->
dce
=
dce
;
dce
->
hwnd
=
hwnd
;
dce
->
count
++
;
list_add_tail
(
&
dce_list
,
&
dce
->
entry
);
}
WIN_ReleasePtr
(
win
);
...
...
@@ -501,14 +500,10 @@ static BOOL CALLBACK dc_hook( HDC hDC, WORD code, DWORD_PTR data, LPARAM lParam
WARN
(
"DC is not in use!
\n
"
);
break
;
case
DCHC_DELETEDC
:
/*
* Windows will not let you delete a DC that is busy
* (between GetDC and ReleaseDC)
*/
USER_Lock
();
if
(
dce
->
count
>
1
)
if
(
!
(
dce
->
flags
&
DCX_CACHE
)
)
{
WARN
(
"Application trying to delete a
busy
DC %p
\n
"
,
dce
->
hdc
);
WARN
(
"Application trying to delete a
n owned
DC %p
\n
"
,
dce
->
hdc
);
retv
=
FALSE
;
}
else
...
...
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