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
47ac325f
Commit
47ac325f
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: Fix the returned format of REG_BINARY data.
parent
6d02194a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
appsearch.c
dlls/msi/appsearch.c
+9
-5
package.c
dlls/msi/tests/package.c
+1
-4
No files found.
dlls/msi/appsearch.c
View file @
47ac325f
...
...
@@ -245,7 +245,9 @@ static void ACTION_ConvertRegValue(DWORD regType, const BYTE *value, DWORD sz,
LPWSTR
*
appValue
)
{
static
const
WCHAR
dwordFmt
[]
=
{
'#'
,
'%'
,
'd'
,
'\0'
};
static
const
WCHAR
binFmt
[]
=
{
'#'
,
'x'
,
'%'
,
'x'
,
'\0'
};
static
const
WCHAR
binPre
[]
=
{
'#'
,
'x'
,
'\0'
};
static
const
WCHAR
binFmt
[]
=
{
'%'
,
'0'
,
'2'
,
'X'
,
'\0'
};
LPWSTR
ptr
;
DWORD
i
;
switch
(
regType
)
...
...
@@ -277,10 +279,12 @@ static void ACTION_ConvertRegValue(DWORD regType, const BYTE *value, DWORD sz,
ExpandEnvironmentStringsW
((
LPCWSTR
)
value
,
*
appValue
,
sz
);
break
;
case
REG_BINARY
:
/* 3 == length of "#x<nibble>" */
*
appValue
=
msi_alloc
((
sz
*
3
+
1
)
*
sizeof
(
WCHAR
));
for
(
i
=
0
;
i
<
sz
;
i
++
)
sprintfW
(
*
appValue
+
i
*
3
,
binFmt
,
value
[
i
]);
/* #x<nibbles>\0 */
*
appValue
=
msi_alloc
((
sz
*
2
+
3
)
*
sizeof
(
WCHAR
));
lstrcpyW
(
*
appValue
,
binPre
);
ptr
=
*
appValue
+
lstrlenW
(
binPre
);
for
(
i
=
0
;
i
<
sz
;
i
++
,
ptr
+=
2
)
sprintfW
(
ptr
,
binFmt
,
value
[
i
]);
break
;
default:
WARN
(
"unimplemented for values of type %d
\n
"
,
regType
);
...
...
dlls/msi/tests/package.c
View file @
47ac325f
...
...
@@ -6339,10 +6339,7 @@ static void test_appsearch_reglocator(void)
lstrcpyA
(
path
,
"#xCDAB3412EF907856"
);
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP7"
,
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
,
"SIGPROP8"
,
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