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
6d02194a
Commit
6d02194a
authored
Oct 13, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Oct 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Expand REG_EXPAND_SZ registry values in the RegLocator table.
parent
65915af1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
appsearch.c
dlls/msi/appsearch.c
+3
-4
package.c
dlls/msi/tests/package.c
+3
-9
No files found.
dlls/msi/appsearch.c
View file @
6d02194a
...
...
@@ -245,7 +245,6 @@ static void ACTION_ConvertRegValue(DWORD regType, const BYTE *value, DWORD sz,
LPWSTR
*
appValue
)
{
static
const
WCHAR
dwordFmt
[]
=
{
'#'
,
'%'
,
'd'
,
'\0'
};
static
const
WCHAR
expandSzFmt
[]
=
{
'#'
,
'%'
,
'%'
,
'%'
,
's'
,
'\0'
};
static
const
WCHAR
binFmt
[]
=
{
'#'
,
'x'
,
'%'
,
'x'
,
'\0'
};
DWORD
i
;
...
...
@@ -273,9 +272,9 @@ static void ACTION_ConvertRegValue(DWORD regType, const BYTE *value, DWORD sz,
sprintfW
(
*
appValue
,
dwordFmt
,
*
(
const
DWORD
*
)
value
);
break
;
case
REG_EXPAND_SZ
:
/* space for extra #% characters in front */
*
appValue
=
msi_alloc
(
sz
+
2
*
sizeof
(
WCHAR
));
sprintfW
(
*
appValue
,
expandSzFmt
,
(
LPCWSTR
)
value
);
sz
=
ExpandEnvironmentStringsW
((
LPCWSTR
)
value
,
NULL
,
0
);
*
appValue
=
msi_alloc
(
sz
*
sizeof
(
WCHAR
));
ExpandEnvironmentStringsW
((
LPCWSTR
)
value
,
*
appValue
,
sz
);
break
;
case
REG_BINARY
:
/* 3 == length of "#x<nibble>" */
...
...
dlls/msi/tests/package.c
View file @
6d02194a
...
...
@@ -6318,19 +6318,13 @@ static void test_appsearch_reglocator(void)
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP4"
,
prop
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
prop
,
path
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
path
,
prop
);
}
ok
(
!
lstrcmpA
(
prop
,
path
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
path
,
prop
);
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP5"
,
prop
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
prop
,
"my%NOVAR%"
),
"Expected
\"
my%%NOVAR%%
\"
, got
\"
%s
\"\n
"
,
prop
);
}
ok
(
!
lstrcmpA
(
prop
,
"my%NOVAR%"
),
"Expected
\"
my%%NOVAR%%
\"
, got
\"
%s
\"\n
"
,
prop
);
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP6"
,
prop
,
&
size
);
...
...
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