Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e6c6390c
Commit
e6c6390c
authored
Dec 12, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for passed invalid window handle in DefMDIChildProc*.
parent
7377a162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
mdi.c
windows/mdi.c
+10
-3
No files found.
windows/mdi.c
View file @
e6c6390c
...
...
@@ -1483,8 +1483,11 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
WND
*
clientWnd
,
*
tmpWnd
=
0
;
LRESULT
retvalue
;
clientWnd
=
WIN_FindWndPtr
(
GetParent16
(
hwnd
));
tmpWnd
=
WIN_FindWndPtr
(
hwnd
);
if
(
!
tmpWnd
)
return
0
;
clientWnd
=
WIN_FindWndPtr
(
tmpWnd
->
parent
->
hwndSelf
);
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
WIN_ReleaseWndPtr
(
tmpWnd
);
switch
(
message
)
{
...
...
@@ -1666,6 +1669,7 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message,
LRESULT
retvalue
;
tmpWnd
=
WIN_FindWndPtr
(
hwnd
);
if
(
!
tmpWnd
)
return
0
;
clientWnd
=
WIN_FindWndPtr
(
tmpWnd
->
parent
->
hwndSelf
);
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
WIN_ReleaseWndPtr
(
tmpWnd
);
...
...
@@ -1731,11 +1735,14 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
WPARAM
wParam
,
LPARAM
lParam
)
{
MDICLIENTINFO
*
ci
;
WND
*
clientWnd
;
WND
*
clientWnd
,
*
tmpWnd
;
LRESULT
retvalue
;
clientWnd
=
WIN_FindWndPtr
(
GetParent16
(
hwnd
));
tmpWnd
=
WIN_FindWndPtr
(
hwnd
);
if
(
!
tmpWnd
)
return
0
;
clientWnd
=
WIN_FindWndPtr
(
tmpWnd
->
parent
->
hwndSelf
);
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
WIN_ReleaseWndPtr
(
tmpWnd
);
switch
(
message
)
{
...
...
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