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
fbd9ed0d
Commit
fbd9ed0d
authored
Feb 16, 2017
by
Rodrigo Rivas Costa
Committed by
Alexandre Julliard
Feb 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix error handling in EndDeferWindowPos.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f62f961
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
win.c
dlls/user32/tests/win.c
+0
-1
winpos.c
dlls/user32/winpos.c
+4
-5
No files found.
dlls/user32/tests/win.c
View file @
fbd9ed0d
...
...
@@ -9539,7 +9539,6 @@ todo_wine
DestroyWindow
(
hwnd
);
ret
=
EndDeferWindowPos
(
hdwp
);
todo_wine
ok
(
ret
,
"got %d
\n
"
,
ret
);
}
...
...
dlls/user32/winpos.c
View file @
fbd9ed0d
...
...
@@ -2430,7 +2430,6 @@ BOOL WINAPI EndDeferWindowPos( HDWP hdwp )
{
DWP
*
pDWP
;
WINDOWPOS
*
winpos
;
BOOL
res
=
TRUE
;
int
i
;
TRACE
(
"%p
\n
"
,
hdwp
);
...
...
@@ -2442,20 +2441,20 @@ BOOL WINAPI EndDeferWindowPos( HDWP hdwp )
return
FALSE
;
}
for
(
i
=
0
,
winpos
=
pDWP
->
winPos
;
res
&&
i
<
pDWP
->
actualCount
;
i
++
,
winpos
++
)
for
(
i
=
0
,
winpos
=
pDWP
->
winPos
;
i
<
pDWP
->
actualCount
;
i
++
,
winpos
++
)
{
TRACE
(
"hwnd %p, after %p, %d,%d (%dx%d), flags %08x
\n
"
,
winpos
->
hwnd
,
winpos
->
hwndInsertAfter
,
winpos
->
x
,
winpos
->
y
,
winpos
->
cx
,
winpos
->
cy
,
winpos
->
flags
);
if
(
WIN_IsCurrentThread
(
winpos
->
hwnd
))
res
=
USER_SetWindowPos
(
winpos
);
USER_SetWindowPos
(
winpos
);
else
res
=
SendMessageW
(
winpos
->
hwnd
,
WM_WINE_SETWINDOWPOS
,
0
,
(
LPARAM
)
winpos
);
SendMessageW
(
winpos
->
hwnd
,
WM_WINE_SETWINDOWPOS
,
0
,
(
LPARAM
)
winpos
);
}
HeapFree
(
GetProcessHeap
(),
0
,
pDWP
->
winPos
);
HeapFree
(
GetProcessHeap
(),
0
,
pDWP
);
return
res
;
return
TRUE
;
}
...
...
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