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
4e2eef2b
Commit
4e2eef2b
authored
Oct 21, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix two missing unlocks on error paths. Found by Smatch.
parent
e01e8a01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
window.c
dlls/winex11.drv/window.c
+10
-2
No files found.
dlls/winex11.drv/window.c
View file @
4e2eef2b
...
...
@@ -238,7 +238,11 @@ BOOL X11DRV_set_win_format( HWND hwnd, XID fbconfig_id )
wine_tsx11_lock
();
vis
=
visual_from_fbconfig_id
(
fbconfig_id
);
if
(
!
vis
)
return
FALSE
;
if
(
!
vis
)
{
wine_tsx11_unlock
();
return
FALSE
;
}
if
(
data
->
whole_window
&&
vis
->
visualid
==
XVisualIDFromVisual
(
visual
))
{
...
...
@@ -384,7 +388,11 @@ static void update_gl_drawable(Display *display, struct x11drv_win_data *data, c
wine_tsx11_lock
();
vis
=
visual_from_fbconfig_id
(
data
->
fbconfig_id
);
if
(
!
vis
)
return
;
if
(
!
vis
)
{
wine_tsx11_unlock
();
return
;
}
pix
=
XCreatePixmap
(
display
,
parent
,
w
,
h
,
vis
->
depth
);
if
(
!
pix
)
...
...
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