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
72d6a984
Commit
72d6a984
authored
Jul 05, 2005
by
Frank Richter
Committed by
Alexandre Julliard
Jul 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write WCHAR strings to registry with correct size.
parent
eea31097
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
system.c
dlls/uxtheme/system.c
+6
-3
No files found.
dlls/uxtheme/system.c
View file @
72d6a984
...
@@ -169,9 +169,12 @@ HRESULT UXTHEME_SetActiveTheme(PTHEME_FILE tf)
...
@@ -169,9 +169,12 @@ HRESULT UXTHEME_SetActiveTheme(PTHEME_FILE tf)
tmp
[
1
]
=
'\0'
;
tmp
[
1
]
=
'\0'
;
RegSetValueExW
(
hKey
,
szThemeActive
,
0
,
REG_SZ
,
(
const
BYTE
*
)
tmp
,
sizeof
(
WCHAR
)
*
2
);
RegSetValueExW
(
hKey
,
szThemeActive
,
0
,
REG_SZ
,
(
const
BYTE
*
)
tmp
,
sizeof
(
WCHAR
)
*
2
);
if
(
bThemeActive
)
{
if
(
bThemeActive
)
{
RegSetValueExW
(
hKey
,
szColorName
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szCurrentColor
,
lstrlenW
(
szCurrentColor
)
+
1
);
RegSetValueExW
(
hKey
,
szColorName
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szCurrentColor
,
RegSetValueExW
(
hKey
,
szSizeName
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szCurrentSize
,
lstrlenW
(
szCurrentSize
)
+
1
);
(
lstrlenW
(
szCurrentColor
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
hKey
,
szDllName
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szCurrentTheme
,
lstrlenW
(
szCurrentTheme
)
+
1
);
RegSetValueExW
(
hKey
,
szSizeName
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szCurrentSize
,
(
lstrlenW
(
szCurrentSize
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
hKey
,
szDllName
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szCurrentTheme
,
(
lstrlenW
(
szCurrentTheme
)
+
1
)
*
sizeof
(
WCHAR
));
}
}
else
{
else
{
RegDeleteValueW
(
hKey
,
szColorName
);
RegDeleteValueW
(
hKey
,
szColorName
);
...
...
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