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
60bece33
Commit
60bece33
authored
Nov 29, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac.drv: Fix RegQueryValueExW size handling.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
83d7b1d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
display.c
dlls/winemac.drv/display.c
+3
-4
No files found.
dlls/winemac.drv/display.c
View file @
60bece33
...
...
@@ -461,12 +461,11 @@ static struct display_mode_descriptor* create_original_display_mode_descriptor(C
size
=
0
;
if
(
RegQueryValueExW
(
hkey
,
pixelencodingW
,
0
,
&
type
,
NULL
,
&
size
)
||
type
!=
REG_SZ
)
goto
done
;
pixel_encoding
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
WCHAR
));
size
+=
sizeof
(
WCHAR
);
pixel_encoding
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
RegQueryValueExW
(
hkey
,
pixelencodingW
,
0
,
&
type
,
(
BYTE
*
)
pixel_encoding
,
&
size
)
||
type
!=
REG_SZ
)
goto
done
;
if
((
end
=
memchrW
(
pixel_encoding
,
0
,
size
)))
size
=
end
-
pixel_encoding
;
desc
->
pixel_encoding
=
CFStringCreateWithCharacters
(
NULL
,
(
const
UniChar
*
)
pixel_encoding
,
size
);
desc
->
pixel_encoding
=
CFStringCreateWithCharacters
(
NULL
,
(
const
UniChar
*
)
pixel_encoding
,
strlenW
(
pixel_encoding
));
ret
=
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