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
a018d850
Commit
a018d850
authored
Sep 28, 1999
by
Noomen Hamza
Committed by
Alexandre Julliard
Sep 28, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrite the ShowOwnedPopups function with a safety algorithm.
parent
13409b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
win.c
windows/win.c
+12
-7
No files found.
windows/win.c
View file @
a018d850
...
...
@@ -2641,15 +2641,20 @@ void WINAPI ShowOwnedPopups16( HWND16 owner, BOOL16 fShow )
*/
BOOL
WINAPI
ShowOwnedPopups
(
HWND
owner
,
BOOL
fShow
)
{
WND
*
pWnd
;
pWnd
=
WIN_LockWndPtr
(
pWndDesktop
->
child
);
while
(
pWnd
)
UINT
totalChild
=
0
,
count
=
0
;
WND
**
pWnd
=
WIN_BuildWinArray
(
WIN_GetDesktop
(),
0
,
&
totalChild
);
if
(
!
pWnd
)
return
TRUE
;
for
(;
count
<
totalChild
;
count
++
)
{
if
(
pWnd
->
owner
&&
(
pWnd
->
owner
->
hwndSelf
==
owner
)
&&
(
pWnd
->
dwStyle
&
WS_POPUP
))
ShowWindow
(
pWnd
->
hwndSelf
,
fShow
?
SW_SHOW
:
SW_HIDE
);
WIN_UpdateWndPtr
(
&
pWnd
,
pWnd
->
next
);
if
(
pWnd
[
count
]
->
owner
&&
(
pWnd
[
count
]
->
owner
->
hwndSelf
==
owner
)
&&
(
pWnd
[
count
]
->
dwStyle
&
WS_POPUP
))
SendMessageA
(
pWnd
[
count
]
->
hwndSelf
,
WM_SHOWWINDOW
,
fShow
?
SW_SHOW
:
SW_HIDE
,
IsIconic
(
owner
)
?
SW_PARENTOPENING
:
SW_PARENTCLOSING
);
}
WIN_ReleaseDesktop
();
WIN_ReleaseWinArray
(
pWnd
);
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