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
84918e7f
Commit
84918e7f
authored
Sep 24, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add window data structure locking to the SetWindowStyle entry point.
parent
4c582103
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
window.c
dlls/winex11.drv/window.c
+6
-5
No files found.
dlls/winex11.drv/window.c
View file @
84918e7f
...
...
@@ -1480,13 +1480,12 @@ void CDECL X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
*/
void
CDECL
X11DRV_SetWindowStyle
(
HWND
hwnd
,
INT
offset
,
STYLESTRUCT
*
style
)
{
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
)
;
DWORD
changed
;
struct
x11drv_win_data
*
data
;
DWORD
changed
=
style
->
styleNew
^
style
->
styleOld
;
if
(
hwnd
==
GetDesktopWindow
())
return
;
if
(
!
data
||
!
data
->
whole_window
)
return
;
changed
=
style
->
styleNew
^
style
->
styleOld
;
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
;
if
(
!
data
->
whole_window
)
goto
done
;
if
(
offset
==
GWL_STYLE
&&
(
changed
&
WS_DISABLED
))
set_wm_hints
(
data
);
...
...
@@ -1495,6 +1494,8 @@ void CDECL X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
sync_window_opacity
(
data
->
display
,
data
->
whole_window
,
0
,
0
,
0
);
if
(
data
->
surface
)
set_surface_color_key
(
data
->
surface
,
CLR_INVALID
);
}
done:
release_win_data
(
data
);
}
...
...
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