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
eaa28e5f
Commit
eaa28e5f
authored
Aug 21, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Aug 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle the LB_GETTEXT and CB_GETLBTEXT cases for 32W to 16 mapping.
parent
7d0968e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
winproc.c
windows/winproc.c
+21
-1
No files found.
windows/winproc.c
View file @
eaa28e5f
...
...
@@ -2207,7 +2207,18 @@ INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32, WPARAM wParam32,
*
plparam
=
(
LPARAM
)
SEGPTR_GET
(
str
);
}
return
1
;
default:
/* No Unicode translation needed */
case
LB_GETTEXT
:
case
CB_GETLBTEXT
:
if
(
WINPROC_TestLBForStr
(
hwnd
))
{
LPSTR
str
=
(
LPSTR
)
SEGPTR_ALLOC
(
256
);
/* fixme: fixed sized buffer */
if
(
!
str
)
return
-
1
;
*
pmsg16
=
(
msg32
==
LB_GETTEXT
)
?
LB_GETTEXT16
:
CB_GETLBTEXT16
;
*
pwparam16
=
(
WPARAM16
)
LOWORD
(
wParam32
);
*
plparam
=
(
LPARAM
)
SEGPTR_GET
(
str
);
}
return
1
;
default:
/* No Unicode translation needed (?) */
return
WINPROC_MapMsg32ATo16
(
hwnd
,
msg32
,
wParam32
,
pmsg16
,
pwparam16
,
plparam
);
}
...
...
@@ -2232,6 +2243,15 @@ void WINPROC_UnmapMsg32WTo16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
SEGPTR_FREE
(
(
LPARAM
*
)
str
-
1
);
}
break
;
case
LB_GETTEXT
:
case
CB_GETLBTEXT
:
if
(
WINPROC_TestLBForStr
(
hwnd
))
{
LPSTR
str
=
(
LPSTR
)
PTR_SEG_TO_LIN
(
p16
->
lParam
);
lstrcpyAtoW
(
(
LPWSTR
)
lParam
,
str
);
SEGPTR_FREE
(
(
LPARAM
*
)
str
);
}
break
;
default:
WINPROC_UnmapMsg32ATo16
(
hwnd
,
msg
,
wParam
,
lParam
,
p16
);
break
;
...
...
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