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
bfc60dfb
Commit
bfc60dfb
authored
Mar 23, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compute dwLen after passing the string through
REGPROC_unescape_string() so we don't save garbage characters in the registry.
parent
a501ea73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
regproc.c
programs/regedit/regproc.c
+5
-2
No files found.
programs/regedit/regproc.c
View file @
bfc60dfb
...
...
@@ -397,14 +397,17 @@ HRESULT setValue(LPSTR val_name, LPSTR val_data)
if
(
dwParseType
==
REG_SZ
)
/* no conversion for string */
{
REGPROC_unescape_string
(
val_data
);
/* Compute dwLen after REGPROC_unescape_string because it may
* have changed the string length and we don't want to store
* the extra garbage in the registry.
*/
dwLen
=
strlen
(
val_data
);
if
(
dwLen
>
0
&&
val_data
[
dwLen
-
1
]
==
'"'
)
{
dwLen
--
;
val_data
[
dwLen
]
=
'\0'
;
}
dwLen
++
;
REGPROC_unescape_string
(
val_data
);
lpbData
=
val_data
;
}
else
if
(
dwParseType
==
REG_DWORD
)
/* Convert the dword types */
{
...
...
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