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
06fed775
Commit
06fed775
authored
Jun 03, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Use ntdll for UTF8 conversion.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
8d0b3b08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
keyboard.c
dlls/wineandroid.drv/keyboard.c
+4
-2
No files found.
dlls/wineandroid.drv/keyboard.c
View file @
06fed775
...
...
@@ -755,9 +755,10 @@ jboolean keyboard_event( JNIEnv *env, jobject obj, jint win, jint action, jint k
*/
INT
ANDROID_GetKeyNameText
(
LONG
lparam
,
LPWSTR
buffer
,
INT
size
)
{
int
scancode
,
vkey
,
len
;
int
scancode
,
vkey
;
const
char
*
name
;
char
key
[
2
];
DWORD
len
;
scancode
=
(
lparam
>>
16
)
&
0x1FF
;
vkey
=
scancode_to_vkey
(
scancode
);
...
...
@@ -795,7 +796,8 @@ INT ANDROID_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size )
name
=
vkey_to_name
(
vkey
);
}
len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
name
,
-
1
,
buffer
,
size
);
RtlUTF8ToUnicodeN
(
buffer
,
size
*
sizeof
(
WCHAR
),
&
len
,
name
,
strlen
(
name
)
+
1
);
len
/=
sizeof
(
WCHAR
);
if
(
len
)
len
--
;
if
(
!
len
)
...
...
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