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
8b4281a7
Commit
8b4281a7
authored
May 26, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Added fast 16->32 mapping for the WM_DDE* messages.
parent
39477518
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
59 deletions
+52
-59
winproc.c
dlls/user/winproc.c
+52
-59
No files found.
dlls/user/winproc.c
View file @
8b4281a7
...
@@ -802,65 +802,6 @@ static INT WINPROC_MapMsg16To32A( HWND hwnd, UINT16 msg16, WPARAM16 wParam16, UI
...
@@ -802,65 +802,6 @@ static INT WINPROC_MapMsg16To32A( HWND hwnd, UINT16 msg16, WPARAM16 wParam16, UI
case
WM_SIZECLIPBOARD
:
case
WM_SIZECLIPBOARD
:
FIXME_
(
msg
)(
"message %04x needs translation
\n
"
,
msg16
);
FIXME_
(
msg
)(
"message %04x needs translation
\n
"
,
msg16
);
return
-
1
;
return
-
1
;
case
WM_DDE_INITIATE
:
case
WM_DDE_TERMINATE
:
case
WM_DDE_UNADVISE
:
case
WM_DDE_REQUEST
:
*
pwparam32
=
(
WPARAM
)
WIN_Handle32
(
wParam16
);
return
0
;
case
WM_DDE_ADVISE
:
case
WM_DDE_DATA
:
case
WM_DDE_POKE
:
{
HANDLE16
lo16
;
ATOM
hi
;
UINT
lo32
=
0
;
*
pwparam32
=
(
WPARAM
)
WIN_Handle32
(
wParam16
);
lo16
=
LOWORD
(
*
plparam
);
hi
=
HIWORD
(
*
plparam
);
if
(
lo16
&&
!
(
lo32
=
convert_handle_16_to_32
(
lo16
,
GMEM_DDESHARE
)))
return
-
1
;
*
plparam
=
PackDDElParam
(
msg16
,
lo32
,
hi
);
}
return
0
;
/* FIXME don't know how to free allocated memory (handle) !! */
case
WM_DDE_ACK
:
{
UINT
lo
,
hi
;
int
flag
=
0
;
char
buf
[
2
];
*
pwparam32
=
(
WPARAM
)
WIN_Handle32
(
wParam16
);
lo
=
LOWORD
(
*
plparam
);
hi
=
HIWORD
(
*
plparam
);
if
(
GlobalGetAtomNameA
(
hi
,
buf
,
2
)
>
0
)
flag
|=
1
;
if
(
GlobalSize16
(
hi
)
!=
0
)
flag
|=
2
;
switch
(
flag
)
{
case
0
:
if
(
hi
)
{
MESSAGE
(
"DDE_ACK: neither atom nor handle!!!
\n
"
);
hi
=
0
;
}
break
;
case
1
:
break
;
/* atom, nothing to do */
case
3
:
MESSAGE
(
"DDE_ACK: %x both atom and handle... choosing handle
\n
"
,
hi
);
/* fall thru */
case
2
:
hi
=
convert_handle_16_to_32
(
hi
,
GMEM_DDESHARE
);
break
;
}
*
plparam
=
PackDDElParam
(
WM_DDE_ACK
,
lo
,
hi
);
}
return
0
;
/* FIXME don't know how to free allocated memory (handle) !! */
case
WM_DDE_EXECUTE
:
*
plparam
=
convert_handle_16_to_32
(
*
plparam
,
GMEM_DDESHARE
);
return
0
;
/* FIXME don't know how to free allocated memory (handle) !! */
default:
/* No translation needed */
default:
/* No translation needed */
return
0
;
return
0
;
}
}
...
@@ -2366,6 +2307,58 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
...
@@ -2366,6 +2307,58 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
*
result
=
MAKELONG
(
HMENU_16
(
next
.
hmenuNext
),
HWND_16
(
next
.
hwndNext
)
);
*
result
=
MAKELONG
(
HMENU_16
(
next
.
hmenuNext
),
HWND_16
(
next
.
hwndNext
)
);
}
}
break
;
break
;
case
WM_DDE_INITIATE
:
case
WM_DDE_TERMINATE
:
case
WM_DDE_UNADVISE
:
case
WM_DDE_REQUEST
:
ret
=
callback
(
hwnd32
,
msg
,
(
WPARAM
)
WIN_Handle32
(
wParam
),
lParam
,
result
,
arg
);
break
;
case
WM_DDE_ADVISE
:
case
WM_DDE_DATA
:
case
WM_DDE_POKE
:
{
HANDLE16
lo16
=
LOWORD
(
lParam
);
UINT
lo32
=
0
;
if
(
lo16
&&
!
(
lo32
=
convert_handle_16_to_32
(
lo16
,
GMEM_DDESHARE
)))
break
;
lParam
=
PackDDElParam
(
msg
,
lo32
,
HIWORD
(
lParam
)
);
ret
=
callback
(
hwnd32
,
msg
,
(
WPARAM
)
WIN_Handle32
(
wParam
),
lParam
,
result
,
arg
);
}
break
;
/* FIXME don't know how to free allocated memory (handle) !! */
case
WM_DDE_ACK
:
{
UINT
lo
=
LOWORD
(
lParam
);
UINT
hi
=
HIWORD
(
lParam
);
int
flag
=
0
;
char
buf
[
2
];
if
(
GlobalGetAtomNameA
(
hi
,
buf
,
2
)
>
0
)
flag
|=
1
;
if
(
GlobalSize16
(
hi
)
!=
0
)
flag
|=
2
;
switch
(
flag
)
{
case
0
:
if
(
hi
)
{
MESSAGE
(
"DDE_ACK: neither atom nor handle!!!
\n
"
);
hi
=
0
;
}
break
;
case
1
:
break
;
/* atom, nothing to do */
case
3
:
MESSAGE
(
"DDE_ACK: %x both atom and handle... choosing handle
\n
"
,
hi
);
/* fall thru */
case
2
:
hi
=
convert_handle_16_to_32
(
hi
,
GMEM_DDESHARE
);
break
;
}
lParam
=
PackDDElParam
(
WM_DDE_ACK
,
lo
,
hi
);
ret
=
callback
(
hwnd32
,
msg
,
(
WPARAM
)
WIN_Handle32
(
wParam
),
lParam
,
result
,
arg
);
}
break
;
/* FIXME don't know how to free allocated memory (handle) !! */
case
WM_DDE_EXECUTE
:
lParam
=
convert_handle_16_to_32
(
lParam
,
GMEM_DDESHARE
);
ret
=
callback
(
hwnd32
,
msg
,
wParam
,
lParam
,
result
,
arg
);
break
;
/* FIXME don't know how to free allocated memory (handle) !! */
default:
default:
{
{
UINT
msg32
;
UINT
msg32
;
...
...
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