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
21b4af1b
Commit
21b4af1b
authored
Feb 24, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix and simplify handling of REG_MULTI_SZ strings in the WriteRegistryValues action.
parent
b532c0c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
action.c
dlls/msi/action.c
+2
-18
No files found.
dlls/msi/action.c
View file @
21b4af1b
...
...
@@ -2322,7 +2322,6 @@ static LPSTR parse_value(MSIPACKAGE *package, LPCWSTR value, DWORD *type,
{
static
const
WCHAR
szMulti
[]
=
{
'['
,
'~'
,
']'
,
0
};
LPCWSTR
ptr
;
LPWSTR
newdata
;
*
type
=
REG_SZ
;
if
(
value
[
0
]
==
'#'
)
...
...
@@ -2350,19 +2349,8 @@ static LPSTR parse_value(MSIPACKAGE *package, LPCWSTR value, DWORD *type,
/* add double NULL terminator */
if
(
*
type
==
REG_MULTI_SZ
)
{
*
size
+=
sizeof
(
WCHAR
);
newdata
=
msi_alloc
(
*
size
);
if
(
!
newdata
)
{
msi_free
(
data
);
return
NULL
;
}
memcpy
(
newdata
,
data
,
*
size
-
1
);
newdata
[
*
size
]
=
'\0'
;
msi_free
(
data
);
data
=
(
LPSTR
)
newdata
;
*
size
+=
2
*
sizeof
(
WCHAR
);
/* two NULL terminators */
data
=
msi_realloc_zero
(
data
,
*
size
);
}
}
return
data
;
...
...
@@ -2503,10 +2491,6 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
deformat_string
(
package
,
name
,
&
deformated
);
/* get the double nulls to terminate SZ_MULTI */
if
(
type
==
REG_MULTI_SZ
)
size
+=
sizeof
(
WCHAR
);
if
(
!
check_first
)
{
TRACE
(
"Setting value %s of %s
\n
"
,
debugstr_w
(
deformated
),
...
...
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