Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
84918e7f
Commit
84918e7f
authored
12 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
winex11: Add window data structure locking to the SetWindowStyle entry point.
parent
4c582103
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winex11.drv/window.c
+6
-5
6 additions, 5 deletions
dlls/winex11.drv/window.c
with
6 additions
and
5 deletions
dlls/winex11.drv/window.c
+
6
−
5
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment