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
d69f799c
Commit
d69f799c
authored
Apr 02, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Use UINT(32) for HIMC in the unixlib interface.
parent
158d6caa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
ime.c
dlls/winemac.drv/ime.c
+1
-1
keyboard.c
dlls/winemac.drv/keyboard.c
+3
-2
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+2
-2
unixlib.h
dlls/winemac.drv/unixlib.h
+3
-3
No files found.
dlls/winemac.drv/ime.c
View file @
d69f799c
...
...
@@ -649,11 +649,11 @@ UINT WINAPI ImeToAsciiEx(UINT uVKey, UINT uScanCode, const LPBYTE lpbKeyState,
UnlockRealIMC
(
hIMC
);
TRACE
(
"Processing Mac 0x%04x
\n
"
,
vkey
);
params
.
himc
=
HandleToULong
(
hIMC
);
params
.
vkey
=
uVKey
;
params
.
scan
=
uScanCode
;
params
.
repeat
=
repeat
;
params
.
key_state
=
lpbKeyState
;
params
.
himc
=
hIMC
;
params
.
done
=
&
done
;
MACDRV_CALL
(
ime_process_text_input
,
&
params
);
...
...
dlls/winemac.drv/keyboard.c
View file @
d69f799c
...
...
@@ -1194,12 +1194,13 @@ NTSTATUS macdrv_ime_process_text_input(void *arg)
{
struct
process_text_input_params
*
params
=
arg
;
struct
macdrv_thread_data
*
thread_data
=
macdrv_thread_data
();
void
*
himc
=
UlongToHandle
(
params
->
himc
);
const
BYTE
*
key_state
=
params
->
key_state
;
unsigned
int
flags
;
int
keyc
;
TRACE
(
"vkey 0x%04x scan 0x%04x repeat %u himc %p
\n
"
,
params
->
vkey
,
params
->
scan
,
params
->
repeat
,
params
->
himc
);
params
->
repeat
,
himc
);
flags
=
thread_data
->
last_modifiers
;
if
(
key_state
[
VK_SHIFT
]
&
0x80
)
...
...
@@ -1232,7 +1233,7 @@ NTSTATUS macdrv_ime_process_text_input(void *arg)
TRACE
(
"flags 0x%08x keyc 0x%04x
\n
"
,
flags
,
keyc
);
macdrv_send_text_input_event
(((
params
->
scan
&
0x8000
)
==
0
),
flags
,
params
->
repeat
,
keyc
,
params
->
himc
,
params
->
done
);
himc
,
params
->
done
);
return
0
;
}
...
...
dlls/winemac.drv/macdrv_main.c
View file @
d69f799c
...
...
@@ -667,20 +667,20 @@ static NTSTATUS wow64_ime_process_text_input(void *arg)
{
struct
{
UINT
himc
;
UINT
vkey
;
UINT
scan
;
UINT
repeat
;
ULONG
key_state
;
ULONG
himc
;
ULONG
done
;
}
*
params32
=
arg
;
struct
process_text_input_params
params
;
params
.
himc
=
params32
->
himc
;
params
.
vkey
=
params32
->
vkey
;
params
.
scan
=
params32
->
scan
;
params
.
repeat
=
params32
->
repeat
;
params
.
key_state
=
UlongToPtr
(
params32
->
key_state
);
params
.
himc
=
UlongToPtr
(
params32
->
himc
);
params
.
done
=
UlongToPtr
(
params32
->
done
);
return
macdrv_ime_process_text_input
(
&
params
);
}
...
...
dlls/winemac.drv/unixlib.h
View file @
d69f799c
...
...
@@ -63,11 +63,11 @@ struct dnd_have_format_params
/* macdrv_ime_process_text_input params */
struct
process_text_input_params
{
UINT
himc
;
UINT
vkey
;
UINT
scan
;
UINT
repeat
;
const
BYTE
*
key_state
;
void
*
himc
;
int
*
done
;
};
...
...
@@ -177,7 +177,7 @@ struct ime_query_char_rect_params
{
UINT32
hwnd
;
UINT32
location
;
UINT
64
himc
;
UINT
32
himc
;
UINT64
result
;
/* FIXME: Use NtCallbackReturn instead */
UINT32
length
;
};
...
...
@@ -187,7 +187,7 @@ struct ime_set_text_params
{
UINT32
hwnd
;
UINT32
cursor_pos
;
UINT
64
himc
;
UINT
32
himc
;
UINT32
complete
;
WCHAR
text
[
1
];
};
...
...
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