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
0553cbe7
Commit
0553cbe7
authored
Dec 12, 2022
by
Huw Davies
Committed by
Alexandre Julliard
Dec 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Fix printf format warnings in keyboard.c.
parent
3ffc4204
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
keyboard.c
dlls/winemac.drv/keyboard.c
+5
-5
No files found.
dlls/winemac.drv/keyboard.c
View file @
0553cbe7
...
...
@@ -898,7 +898,7 @@ void macdrv_compute_keyboard_layout(struct macdrv_thread_data *thread_data)
from the default map, if it's still available. */
for
(
keyc
=
0
;
keyc
<
ARRAY_SIZE
(
default_map
);
keyc
++
)
{
DWORD
vkey
=
default_map
[
keyc
].
vkey
;
unsigned
int
vkey
=
default_map
[
keyc
].
vkey
;
if
(
!
thread_data
->
keyc2scan
[
keyc
])
continue
;
/* not a known Mac key code */
if
(
thread_data
->
keyc2vkey
[
keyc
])
continue
;
/* already assigned */
...
...
@@ -988,7 +988,7 @@ void macdrv_compute_keyboard_layout(struct macdrv_thread_data *thread_data)
/***********************************************************************
* macdrv_send_keyboard_input
*/
static
void
macdrv_send_keyboard_input
(
HWND
hwnd
,
WORD
vkey
,
WORD
scan
,
DWORD
flags
,
DWORD
time
)
static
void
macdrv_send_keyboard_input
(
HWND
hwnd
,
WORD
vkey
,
WORD
scan
,
unsigned
int
flags
,
unsigned
int
time
)
{
INPUT
input
;
...
...
@@ -1307,7 +1307,7 @@ INT macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
UInt32
deadKeyState
=
0
;
UniCharCount
len
;
OSStatus
status
;
DWORD
vkey
;
unsigned
int
vkey
;
int
i
;
uchr
=
(
const
UCKeyboardLayout
*
)
CFDataGetBytePtr
(
thread_data
->
keyboard_layout_uchr
);
...
...
@@ -1368,12 +1368,12 @@ INT macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
len
=
wcslen
(
buffer
);
}
TRACE
(
"lparam 0x%08x -> %s
\n
"
,
lparam
,
debugstr_w
(
buffer
));
TRACE
(
"lparam 0x%08x -> %s
\n
"
,
(
unsigned
int
)
lparam
,
debugstr_w
(
buffer
));
return
len
;
}
}
WARN
(
"found no name for lparam 0x%08x
\n
"
,
lparam
);
WARN
(
"found no name for lparam 0x%08x
\n
"
,
(
unsigned
int
)
lparam
);
return
0
;
}
...
...
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