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
223ac670
Commit
223ac670
authored
Oct 31, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac.drv: Fix registry path size in create_original_display_mode_descriptor.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53081
parent
a3d08482
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
display.c
dlls/winemac.drv/display.c
+1
-1
No files found.
dlls/winemac.drv/display.c
View file @
223ac670
...
...
@@ -308,7 +308,7 @@ static struct display_mode_descriptor* create_original_display_mode_descriptor(C
snprintf
(
display_key
,
sizeof
(
display_key
),
display_key_format
,
CGDisplayUnitNumber
(
displayID
));
/* @@ Wine registry key: HKLM\Software\Wine\Mac Driver\Initial Display Mode\Display 0xnnnnnnnn */
if
(
!
(
hkey
=
reg_open_key
(
NULL
,
nameW
,
asciiz_to_unicode
(
nameW
,
display_key
))))
if
(
!
(
hkey
=
reg_open_key
(
NULL
,
nameW
,
asciiz_to_unicode
(
nameW
,
display_key
)
-
sizeof
(
WCHAR
)
)))
return
NULL
;
desc
=
malloc
(
sizeof
(
*
desc
));
...
...
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