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
5af055d8
Commit
5af055d8
authored
Sep 24, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid list corruption when linking window with HWND_BOTTOM (thanks to
Gerard Patel).
parent
551586e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
window.c
server/window.c
+11
-6
No files found.
server/window.c
View file @
5af055d8
...
...
@@ -174,15 +174,20 @@ DECL_HANDLER(link_window)
if
(
req
->
parent
&&
!
(
parent
=
get_window
(
req
->
parent
)))
return
;
if
(
parent
&&
req
->
previous
)
{
if
(
req
->
previous
==
1
)
/* special case: HWND_BOTTOM */
if
(
req
->
previous
==
(
user_handle_t
)
1
)
/* special case: HWND_BOTTOM */
{
previous
=
parent
->
last_child
;
if
(
previous
==
win
)
return
;
/* nothing to do */
}
else
if
(
!
(
previous
=
get_window
(
req
->
previous
)))
return
;
if
(
previous
&&
previous
->
parent
!=
parent
)
/* previous must be a child of parent */
{
set_error
(
STATUS_INVALID_PARAMETER
);
return
;
if
(
!
(
previous
=
get_window
(
req
->
previous
)))
return
;
/* previous must be a child of parent, and not win itself */
if
(
previous
->
parent
!=
parent
||
previous
==
win
)
{
set_error
(
STATUS_INVALID_PARAMETER
);
return
;
}
}
}
link_window
(
win
,
parent
,
previous
);
...
...
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