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
9f32d6d6
Commit
9f32d6d6
authored
Jul 20, 2010
by
Dylan Smith
Committed by
Alexandre Julliard
Jul 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Prevent resize of minimized windows from SetWindowPos.
parent
f35dabad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
win.c
dlls/user32/tests/win.c
+1
-1
winpos.c
dlls/user32/winpos.c
+10
-2
No files found.
dlls/user32/tests/win.c
View file @
9f32d6d6
...
...
@@ -4923,7 +4923,7 @@ static void test_ShowWindow(void)
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOZORDER
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
GetWindowRect
(
hwnd
,
&
rc
);
todo_wine
ok
(
EqualRect
(
&
rc
,
&
rcMinimized
),
"rects should match
\n
"
);
ok
(
EqualRect
(
&
rc
,
&
rcMinimized
),
"rects should match
\n
"
);
ShowWindow
(
hwnd
,
SW_RESTORE
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
dlls/user32/winpos.c
View file @
9f32d6d6
...
...
@@ -1519,8 +1519,16 @@ static BOOL SWP_DoWinPosChanging( WINDOWPOS* pWinpos, RECT* pNewWindowRect, RECT
if
(
!
(
pWinpos
->
flags
&
SWP_NOSIZE
))
{
pNewWindowRect
->
right
=
pNewWindowRect
->
left
+
pWinpos
->
cx
;
pNewWindowRect
->
bottom
=
pNewWindowRect
->
top
+
pWinpos
->
cy
;
if
(
wndPtr
->
dwStyle
&
WS_MINIMIZE
)
{
pNewWindowRect
->
right
=
pNewWindowRect
->
left
+
GetSystemMetrics
(
SM_CXICON
);
pNewWindowRect
->
bottom
=
pNewWindowRect
->
top
+
GetSystemMetrics
(
SM_CYICON
);
}
else
{
pNewWindowRect
->
right
=
pNewWindowRect
->
left
+
pWinpos
->
cx
;
pNewWindowRect
->
bottom
=
pNewWindowRect
->
top
+
pWinpos
->
cy
;
}
}
if
(
!
(
pWinpos
->
flags
&
SWP_NOMOVE
))
{
...
...
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