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
9933a0fc
Commit
9933a0fc
authored
Oct 30, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Oct 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Initialize length before calling GetWindowPlacement().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2b8a3816
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
misc.c
dlls/user32/misc.c
+1
-0
winpos.c
dlls/user32/winpos.c
+2
-0
No files found.
dlls/user32/misc.c
View file @
9933a0fc
...
...
@@ -415,6 +415,7 @@ HMONITOR WINAPI MonitorFromWindow(HWND hWnd, DWORD dwFlags)
TRACE
(
"(%p, 0x%08x)
\n
"
,
hWnd
,
dwFlags
);
wp
.
length
=
sizeof
(
wp
);
if
(
IsIconic
(
hWnd
)
&&
GetWindowPlacement
(
hWnd
,
&
wp
))
return
MonitorFromRect
(
&
wp
.
rcNormalPosition
,
dwFlags
);
...
...
dlls/user32/winpos.c
View file @
9933a0fc
...
...
@@ -1255,6 +1255,8 @@ UINT WINAPI GetInternalWindowPos( HWND hwnd, LPRECT rectWnd,
LPPOINT
ptIcon
)
{
WINDOWPLACEMENT
wndpl
;
wndpl
.
length
=
sizeof
(
wndpl
);
if
(
GetWindowPlacement
(
hwnd
,
&
wndpl
))
{
if
(
rectWnd
)
*
rectWnd
=
wndpl
.
rcNormalPosition
;
...
...
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