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
1bd73c6c
Commit
1bd73c6c
authored
Jul 28, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Store MDI client info on client heap.
parent
224a8fc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
mdi.c
dlls/user32/mdi.c
+9
-5
No files found.
dlls/user32/mdi.c
View file @
1bd73c6c
...
...
@@ -127,7 +127,6 @@ typedef struct
* states it must keep coherency with USER32 on its own. This is true for
* Windows as well.
*/
LONG
reserved
;
UINT
nActiveChildren
;
HWND
hwndChildMaximized
;
HWND
hwndActiveChild
;
...
...
@@ -187,7 +186,7 @@ const struct builtin_class_descr MDICLIENT_builtin_class =
L"MDIClient"
,
/* name */
0
,
/* style */
WINPROC_MDICLIENT
,
/* proc */
sizeof
(
MDICLIENTINFO
),
/* extra */
2
*
sizeof
(
void
*
),
/* extra */
IDC_ARROW
,
/* cursor */
(
HBRUSH
)(
COLOR_APPWORKSPACE
+
1
)
/* brush */
};
...
...
@@ -205,7 +204,7 @@ static MDICLIENTINFO *get_client_info( HWND client )
return
NULL
;
}
if
(
win
->
flags
&
WIN_ISMDICLIENT
)
ret
=
(
MDICLIENTINFO
*
)
win
->
wExtra
;
ret
=
(
(
MDICLIENTINFO
**
)
win
->
wExtra
)[
1
]
;
else
WARN
(
"%p is not an MDI client
\n
"
,
client
);
WIN_ReleasePtr
(
win
);
...
...
@@ -1036,7 +1035,12 @@ LRESULT MDIClientWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
if
(
!
(
ci
=
get_client_info
(
hwnd
)))
{
if
(
message
==
WM_NCCREATE
)
win_set_flags
(
hwnd
,
WIN_ISMDICLIENT
,
0
);
if
(
message
==
WM_NCCREATE
)
{
if
(
!
(
ci
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
ci
)
)))
return
0
;
SetWindowLongPtrW
(
hwnd
,
sizeof
(
void
*
),
(
ULONG_PTR
)
ci
);
win_set_flags
(
hwnd
,
WIN_ISMDICLIENT
,
0
);
}
return
unicode
?
DefWindowProcW
(
hwnd
,
message
,
wParam
,
lParam
)
:
DefWindowProcA
(
hwnd
,
message
,
wParam
,
lParam
);
}
...
...
@@ -1077,7 +1081,7 @@ LRESULT MDIClientWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
HeapFree
(
GetProcessHeap
(),
0
,
ci
->
child
);
HeapFree
(
GetProcessHeap
(),
0
,
ci
->
frameTitle
);
HeapFree
(
GetProcessHeap
(),
0
,
ci
);
return
0
;
}
...
...
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