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
ebc68649
Commit
ebc68649
authored
Oct 31, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't allow changing the WS_EX_TOPMOST style with SetWindowLong.
parent
917f288f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
win.c
dlls/user32/tests/win.c
+0
-3
win.c
dlls/user32/win.c
+2
-0
No files found.
dlls/user32/tests/win.c
View file @
ebc68649
...
...
@@ -993,12 +993,9 @@ static void test_shell_window(void)
/* passes on Win XP, but not on Win98
ok(!ret, "third call to SetShellWindow(hwnd1)\n"); */
todo_wine
{
SetWindowLong
(
hwnd1
,
GWL_EXSTYLE
,
GetWindowLong
(
hwnd1
,
GWL_EXSTYLE
)
|
WS_EX_TOPMOST
);
ret
=
GetWindowLong
(
hwnd1
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
?
TRUE
:
FALSE
;
ok
(
!
ret
,
"SetWindowExStyle(hwnd1, WS_EX_TOPMOST)
\n
"
);
}
ret
=
DestroyWindow
(
hwnd1
);
ok
(
ret
,
"DestroyWindow(hwnd1)
\n
"
);
...
...
dlls/user32/win.c
View file @
ebc68649
...
...
@@ -1945,6 +1945,8 @@ LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, UINT size, LONG_PTR newval, B
break
;
case
GWL_EXSTYLE
:
req
->
flags
=
SET_WIN_EXSTYLE
;
/* WS_EX_TOPMOST can only be changed through SetWindowPos */
newval
=
(
newval
&
~
WS_EX_TOPMOST
)
|
(
wndPtr
->
dwExStyle
&
WS_EX_TOPMOST
);
req
->
ex_style
=
newval
;
break
;
case
GWLP_ID
:
...
...
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