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
22342300
Commit
22342300
authored
Jun 03, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Don't use sprintfW in copy_system_cursor_name.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
dd818662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mouse.c
dlls/winemac.drv/mouse.c
+6
-2
No files found.
dlls/winemac.drv/mouse.c
View file @
22342300
...
...
@@ -166,7 +166,6 @@ static void send_mouse_input(HWND hwnd, macdrv_window cocoa_window, UINT flags,
*/
CFStringRef
copy_system_cursor_name
(
ICONINFOEXW
*
info
)
{
static
const
WCHAR
idW
[]
=
{
'%'
,
'h'
,
'u'
,
0
};
const
struct
system_cursors
*
cursors
;
unsigned
int
i
;
CFStringRef
cursor_name
=
NULL
;
...
...
@@ -184,7 +183,12 @@ CFStringRef copy_system_cursor_name(ICONINFOEXW *info)
p
=
name
+
strlenW
(
name
);
*
p
++
=
','
;
if
(
info
->
szResName
[
0
])
strcpyW
(
p
,
info
->
szResName
);
else
sprintfW
(
p
,
idW
,
info
->
wResID
);
else
{
char
buf
[
16
];
sprintf
(
buf
,
"%hu"
,
info
->
wResID
);
asciiz_to_unicode
(
p
,
buf
);
}
/* @@ Wine registry key: HKCU\Software\Wine\Mac Driver\Cursors */
if
(
!
(
key
=
open_hkcu_key
(
"Software
\\
Wine
\\
Mac Driver
\\
Cursors"
)))
...
...
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