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
32d55714
Commit
32d55714
authored
May 01, 2022
by
Torge Matthies
Committed by
Alexandre Julliard
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Calculate buffer sizes from registry structs correctly.
Signed-off-by:
Torge Matthies
<
tmatthies@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4e19373c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sysparams.c
dlls/win32u/sysparams.c
+3
-2
No files found.
dlls/win32u/sysparams.c
View file @
32d55714
...
@@ -1258,7 +1258,8 @@ static BOOL update_display_cache_from_registry(void)
...
@@ -1258,7 +1258,8 @@ static BOOL update_display_cache_from_registry(void)
sizeof
(
devicemap_video_keyW
)
)))
sizeof
(
devicemap_video_keyW
)
)))
return
FALSE
;
return
FALSE
;
status
=
NtQueryKey
(
video_key
,
KeyFullInformation
,
&
key
,
sizeof
(
key
),
&
size
);
status
=
NtQueryKey
(
video_key
,
KeyFullInformation
,
&
key
,
offsetof
(
KEY_FULL_INFORMATION
,
Class
),
&
size
);
if
(
status
&&
status
!=
STATUS_BUFFER_OVERFLOW
)
if
(
status
&&
status
!=
STATUS_BUFFER_OVERFLOW
)
return
FALSE
;
return
FALSE
;
...
@@ -3210,7 +3211,7 @@ void sysparams_init(void)
...
@@ -3210,7 +3211,7 @@ void sysparams_init(void)
if
((
hkey
=
reg_open_key
(
config_key
,
software_fontsW
,
sizeof
(
software_fontsW
)
)))
if
((
hkey
=
reg_open_key
(
config_key
,
software_fontsW
,
sizeof
(
software_fontsW
)
)))
{
{
char
buffer
[
sizeof
(
KEY_VALUE_PARTIAL_INFORMATION
)
+
sizeof
(
DWORD
)];
char
buffer
[
offsetof
(
KEY_VALUE_PARTIAL_INFORMATION
,
Data
[
sizeof
(
DWORD
)]
)];
KEY_VALUE_PARTIAL_INFORMATION
*
value
=
(
void
*
)
buffer
;
KEY_VALUE_PARTIAL_INFORMATION
*
value
=
(
void
*
)
buffer
;
if
(
query_reg_value
(
hkey
,
log_pixelsW
,
value
,
sizeof
(
buffer
)
)
&&
value
->
Type
==
REG_DWORD
)
if
(
query_reg_value
(
hkey
,
log_pixelsW
,
value
,
sizeof
(
buffer
)
)
&&
value
->
Type
==
REG_DWORD
)
...
...
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