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
4277b055
Commit
4277b055
authored
Aug 17, 2016
by
Józef Kucia
Committed by
Alexandre Julliard
Aug 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Prevent resetting WS_MINIMIZE through SetWindowLong.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
412b8dca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
win.c
dlls/user32/tests/win.c
+2
-7
win.c
dlls/user32/win.c
+2
-0
No files found.
dlls/user32/tests/win.c
View file @
4277b055
...
...
@@ -6281,7 +6281,6 @@ static LRESULT WINAPI check_style_wnd_proc(HWND hwnd, UINT message, WPARAM wPara
{
ok
(
got
->
styleOld
==
expected
[
1
].
styleOld
,
"expected old style %#x, got %#x
\n
"
,
expected
[
1
].
styleOld
,
got
->
styleOld
);
todo_wine_if
(
expected
[
0
].
styleOld
&
WS_MINIMIZE
)
ok
(
got
->
styleNew
==
expected
[
1
].
styleNew
,
"expected new style %#x, got %#x
\n
"
,
expected
[
1
].
styleNew
,
got
->
styleNew
);
}
...
...
@@ -6330,13 +6329,9 @@ static void test_set_window_style(void)
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
*
tests
);
i
++
)
{
BOOL
todo
=
FALSE
;
expected_style
=
tests
[
i
].
style
;
if
((
tests
[
i
].
creation_style
&
WS_MINIMIZE
)
&&
!
(
tests
[
i
].
style
&
WS_MINIMIZE
))
{
todo
=
TRUE
;
if
(
tests
[
i
].
creation_style
&
WS_MINIMIZE
)
expected_style
|=
WS_MINIMIZE
;
}
expected_stylestruct
[
0
].
styleOld
=
tests
[
i
].
creation_style
;
expected_stylestruct
[
0
].
styleNew
=
tests
[
i
].
style
;
...
...
@@ -6352,7 +6347,7 @@ static void test_set_window_style(void)
ok
(
old_style
==
tests
[
i
].
creation_style
,
"expected old style %#x, got %#x
\n
"
,
tests
[
i
].
creation_style
,
old_style
);
new_style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
todo_wine_if
(
todo
)
ok
(
new_style
==
expected_style
,
"expected new style %#x, got %#x
\n
"
,
ok
(
new_style
==
expected_style
,
"expected new style %#x, got %#x
\n
"
,
expected_style
,
new_style
);
SetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
,
0
);
...
...
dlls/user32/win.c
View file @
4277b055
...
...
@@ -2367,6 +2367,8 @@ LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, UINT size, LONG_PTR newval, B
newval
=
style
.
styleNew
;
/* WS_CLIPSIBLINGS can't be reset on top-level windows */
if
(
wndPtr
->
parent
==
GetDesktopWindow
())
newval
|=
WS_CLIPSIBLINGS
;
/* WS_MINIMIZE can't be reset */
if
(
wndPtr
->
dwStyle
&
WS_MINIMIZE
)
newval
|=
WS_MINIMIZE
;
/* FIXME: changing WS_DLGFRAME | WS_THICKFRAME is supposed to change
WS_EX_WINDOWEDGE too */
break
;
...
...
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