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
d6865383
Commit
d6865383
authored
Jan 19, 2006
by
Ken Thomases
Committed by
Alexandre Julliard
Jan 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Fixed the lifetime of MDICREATESTRUCT variables.
parent
265c8a5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
win.c
dlls/user/win.c
+1
-1
winproc.c
dlls/user/winproc.c
+1
-2
No files found.
dlls/user/win.c
View file @
d6865383
...
...
@@ -833,6 +833,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
WND
*
wndPtr
;
HWND
hwnd
,
parent
,
owner
,
top_child
=
0
;
BOOL
unicode
=
(
type
==
WIN_PROC_32W
);
MDICREATESTRUCTA
mdi_cs
;
TRACE
(
"%s %s ex=%08lx style=%08lx %d,%d %dx%d parent=%p menu=%p inst=%p params=%p
\n
"
,
(
type
==
WIN_PROC_32W
)
?
debugstr_w
((
LPCWSTR
)
cs
->
lpszName
)
:
debugstr_a
(
cs
->
lpszName
),
...
...
@@ -848,7 +849,6 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
/* Fix the styles for MDI children */
if
(
cs
->
dwExStyle
&
WS_EX_MDICHILD
)
{
MDICREATESTRUCTA
mdi_cs
;
UINT
flags
=
0
;
wndPtr
=
WIN_GetPtr
(
cs
->
hwndParent
);
...
...
dlls/user/winproc.c
View file @
d6865383
...
...
@@ -3017,6 +3017,7 @@ static BOOL WINPROC_CallProc32WTo32A_fast( WNDPROC func, HWND hwnd,
char
*
cls
=
buffer
,
*
name
;
CREATESTRUCTW
*
csW
=
(
CREATESTRUCTW
*
)
lParam
;
CREATESTRUCTA
csA
=
*
(
CREATESTRUCTA
*
)
csW
;
MDICREATESTRUCTA
mdi_cs
;
DWORD
name_lenA
,
name_lenW
,
class_lenA
,
class_lenW
;
class_lenW
=
strlenW
(
csW
->
lpszClass
)
*
sizeof
(
WCHAR
);
...
...
@@ -3050,8 +3051,6 @@ static BOOL WINPROC_CallProc32WTo32A_fast( WNDPROC func, HWND hwnd,
if
(
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_MDICHILD
)
{
MDICREATESTRUCTA
mdi_cs
;
mdi_cs
=
*
(
MDICREATESTRUCTA
*
)
csW
->
lpCreateParams
;
mdi_cs
.
szTitle
=
csA
.
lpszName
;
mdi_cs
.
szClass
=
csA
.
lpszClass
;
...
...
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