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
9314b59a
Commit
9314b59a
authored
Oct 20, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Oct 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Pass size in bytes to RegQueryValueExW().
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
93992c76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
system.c
dlls/uxtheme/system.c
+4
-4
No files found.
dlls/uxtheme/system.c
View file @
9314b59a
...
...
@@ -85,7 +85,7 @@ static BOOL CALLBACK UXTHEME_broadcast_msg (HWND hWnd, LPARAM msg)
static
DWORD
query_reg_path
(
HKEY
hKey
,
LPCWSTR
lpszValue
,
LPVOID
pvData
)
{
DWORD
dwRet
,
dwType
,
dwUnExpDataLen
=
MAX_PATH
,
dwExpDataLen
;
DWORD
dwRet
,
dwType
,
dwUnExpDataLen
=
MAX_PATH
*
sizeof
(
WCHAR
)
,
dwExpDataLen
;
TRACE
(
"(hkey=%p,%s,%p)
\n
"
,
hKey
,
debugstr_w
(
lpszValue
),
pvData
);
...
...
@@ -147,7 +147,7 @@ static void UXTHEME_LoadTheme(void)
/* Get current theme configuration */
if
(
!
RegOpenKeyW
(
HKEY_CURRENT_USER
,
szThemeManager
,
&
hKey
))
{
TRACE
(
"Loading theme config
\n
"
);
buffsize
=
ARRAY_SIZE
(
tmp
);
buffsize
=
sizeof
(
tmp
);
if
(
!
RegQueryValueExW
(
hKey
,
L"ThemeActive"
,
NULL
,
NULL
,
(
BYTE
*
)
tmp
,
&
buffsize
))
{
bThemeActive
=
(
tmp
[
0
]
!=
'0'
);
}
...
...
@@ -155,10 +155,10 @@ static void UXTHEME_LoadTheme(void)
bThemeActive
=
FALSE
;
TRACE
(
"Failed to get ThemeActive: %d
\n
"
,
GetLastError
());
}
buffsize
=
ARRAY_SIZE
(
szCurrentColor
);
buffsize
=
sizeof
(
szCurrentColor
);
if
(
RegQueryValueExW
(
hKey
,
L"ColorName"
,
NULL
,
NULL
,
(
BYTE
*
)
szCurrentColor
,
&
buffsize
))
szCurrentColor
[
0
]
=
'\0'
;
buffsize
=
ARRAY_SIZE
(
szCurrentSize
);
buffsize
=
sizeof
(
szCurrentSize
);
if
(
RegQueryValueExW
(
hKey
,
L"SizeName"
,
NULL
,
NULL
,
(
BYTE
*
)
szCurrentSize
,
&
buffsize
))
szCurrentSize
[
0
]
=
'\0'
;
if
(
query_reg_path
(
hKey
,
L"DllName"
,
szCurrentTheme
))
...
...
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