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
01578f51
Commit
01578f51
authored
Mar 30, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Pack the structure for WM_DDE_ACK to allow crossing 32/64 boundaries.
parent
2de2222a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
message.c
dlls/user32/message.c
+6
-3
No files found.
dlls/user32/message.c
View file @
01578f51
...
...
@@ -2000,8 +2000,9 @@ static BOOL post_dde_message( struct packed_message *data, const struct send_mes
HGLOBAL
h
=
dde_get_pair
(
(
HANDLE
)
uiHi
);
if
(
h
)
{
ULONGLONG
hpack
=
pack_ptr
(
h
);
/* send back the value of h on the other side */
push_data
(
data
,
&
h
,
sizeof
(
HGLOBAL
)
);
push_data
(
data
,
&
h
pack
,
sizeof
(
hpack
)
);
lp
=
uiLo
;
TRACE
(
"send dde-ack %lx %08lx => %p
\n
"
,
uiLo
,
uiHi
,
h
);
}
...
...
@@ -2102,11 +2103,13 @@ static BOOL unpack_dde_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM
case
WM_DDE_ACK
:
if
(
size
)
{
ULONGLONG
hpack
;
/* hMem is being passed */
if
(
size
!=
sizeof
(
HGLOBAL
))
return
FALSE
;
if
(
size
!=
sizeof
(
hpack
))
return
FALSE
;
if
(
!
buffer
||
!*
buffer
)
return
FALSE
;
uiLo
=
*
lparam
;
memcpy
(
&
hMem
,
*
buffer
,
size
);
memcpy
(
&
hpack
,
*
buffer
,
size
);
hMem
=
unpack_ptr
(
hpack
);
uiHi
=
(
UINT_PTR
)
hMem
;
TRACE
(
"recv dde-ack %lx mem=%lx[%lx]
\n
"
,
uiLo
,
uiHi
,
GlobalSize
(
hMem
));
}
...
...
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