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
f2ee10ae
Commit
f2ee10ae
authored
Nov 08, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fixed bogus A -> W conversion.
parent
91bb29ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
registry.c
dlls/msi/registry.c
+15
-12
No files found.
dlls/msi/registry.c
View file @
f2ee10ae
...
...
@@ -618,13 +618,8 @@ UINT WINAPI MsiDecomposeDescriptorW( LPCWSTR szDescriptor, LPWSTR szProduct,
len
=
(
p
-
&
szDescriptor
[
20
]);
if
(
len
>
MAX_FEATURE_CHARS
)
return
ERROR_INVALID_PARAMETER
;
if
(
szFeature
)
{
memcpy
(
szFeature
,
&
szDescriptor
[
20
],
len
*
sizeof
(
WCHAR
)
);
szFeature
[
len
]
=
0
;
}
TRACE
(
"feature %s
\n
"
,
debugstr_w
(
&
szDescriptor
[
20
]
));
TRACE
(
"feature %s
\n
"
,
debugstr_w
n
(
&
szDescriptor
[
20
],
len
));
r
=
decode_base85_guid
(
p
+
1
,
&
component
);
if
(
!
r
)
...
...
@@ -636,6 +631,11 @@ UINT WINAPI MsiDecomposeDescriptorW( LPCWSTR szDescriptor, LPWSTR szProduct,
StringFromGUID2
(
&
product
,
szProduct
,
MAX_FEATURE_CHARS
+
1
);
if
(
szComponent
)
StringFromGUID2
(
&
component
,
szComponent
,
MAX_FEATURE_CHARS
+
1
);
if
(
szFeature
)
{
memcpy
(
szFeature
,
&
szDescriptor
[
20
],
len
*
sizeof
(
WCHAR
)
);
szFeature
[
len
]
=
0
;
}
len
=
(
&
p
[
21
]
-
szDescriptor
);
TRACE
(
"length = %d
\n
"
,
len
);
...
...
@@ -669,12 +669,15 @@ UINT WINAPI MsiDecomposeDescriptorA( LPCSTR szDescriptor, LPSTR szProduct,
r
=
MsiDecomposeDescriptorW
(
str
,
p
,
f
,
c
,
pUsed
);
WideCharToMultiByte
(
CP_ACP
,
0
,
p
,
MAX_FEATURE_CHARS
+
1
,
szProduct
,
MAX_FEATURE_CHARS
+
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
f
,
MAX_FEATURE_CHARS
+
1
,
szFeature
,
MAX_FEATURE_CHARS
+
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
c
,
MAX_FEATURE_CHARS
+
1
,
szComponent
,
MAX_FEATURE_CHARS
+
1
,
NULL
,
NULL
);
if
(
r
==
ERROR_SUCCESS
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
p
,
-
1
,
szProduct
,
MAX_FEATURE_CHARS
+
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
f
,
-
1
,
szFeature
,
MAX_FEATURE_CHARS
+
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
c
,
-
1
,
szComponent
,
MAX_FEATURE_CHARS
+
1
,
NULL
,
NULL
);
}
msi_free
(
str
);
...
...
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