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
1848c808
Commit
1848c808
authored
Oct 19, 2000
by
Ulrich Weigand
Committed by
Alexandre Julliard
Oct 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Watch out for DefMDIChildProc calls on non-MDI-child windows.
parent
8862a4ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
mdi.c
windows/mdi.c
+25
-0
No files found.
windows/mdi.c
View file @
1848c808
...
@@ -75,6 +75,7 @@
...
@@ -75,6 +75,7 @@
#include "winuser.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
#include "win.h"
#include "win.h"
#include "class.h"
#include "heap.h"
#include "heap.h"
#include "nonclient.h"
#include "nonclient.h"
#include "mdi.h"
#include "mdi.h"
...
@@ -1645,6 +1646,14 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
...
@@ -1645,6 +1646,14 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
WIN_ReleaseWndPtr
(
tmpWnd
);
WIN_ReleaseWndPtr
(
tmpWnd
);
/* Sanity check */
if
(
clientWnd
->
class
->
cbWndExtra
<
sizeof
(
MDICLIENTINFO
))
{
WARN
(
"called on non-MDI child window %x
\n
"
,
hwnd
);
WIN_ReleaseWndPtr
(
clientWnd
);
return
DefWindowProc16
(
hwnd
,
message
,
wParam
,
lParam
);
}
switch
(
message
)
switch
(
message
)
{
{
case
WM_SETTEXT
:
case
WM_SETTEXT
:
...
@@ -1837,6 +1846,14 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message,
...
@@ -1837,6 +1846,14 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message,
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
WIN_ReleaseWndPtr
(
tmpWnd
);
WIN_ReleaseWndPtr
(
tmpWnd
);
/* Sanity check */
if
(
clientWnd
->
class
->
cbWndExtra
<
sizeof
(
MDICLIENTINFO
))
{
WARN
(
"called on non-MDI child window %x
\n
"
,
hwnd
);
WIN_ReleaseWndPtr
(
clientWnd
);
return
DefWindowProcA
(
hwnd
,
message
,
wParam
,
lParam
);
}
switch
(
message
)
switch
(
message
)
{
{
case
WM_SETTEXT
:
case
WM_SETTEXT
:
...
@@ -1907,6 +1924,14 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
...
@@ -1907,6 +1924,14 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
WIN_ReleaseWndPtr
(
tmpWnd
);
WIN_ReleaseWndPtr
(
tmpWnd
);
/* Sanity check */
if
(
clientWnd
->
class
->
cbWndExtra
<
sizeof
(
MDICLIENTINFO
))
{
WARN
(
"called on non-MDI child window %x
\n
"
,
hwnd
);
WIN_ReleaseWndPtr
(
clientWnd
);
return
DefWindowProcW
(
hwnd
,
message
,
wParam
,
lParam
);
}
switch
(
message
)
switch
(
message
)
{
{
case
WM_SETTEXT
:
case
WM_SETTEXT
:
...
...
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