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
97c51208
Commit
97c51208
authored
Jun 20, 2017
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys: Add support for VT_LPWSTR and VT_BSTR to PropVariantToStringAlloc.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
09a2547f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
propvar.c
dlls/propsys/propvar.c
+13
-0
No files found.
dlls/propsys/propvar.c
View file @
97c51208
...
...
@@ -224,6 +224,7 @@ HRESULT WINAPI PropVariantToStringAlloc(REFPROPVARIANT propvarIn, WCHAR **ret)
res
=
CoTaskMemAlloc
(
1
*
sizeof
(
WCHAR
));
res
[
0
]
=
'\0'
;
break
;
case
VT_LPSTR
:
if
(
propvarIn
->
u
.
pszVal
)
{
...
...
@@ -237,6 +238,18 @@ HRESULT WINAPI PropVariantToStringAlloc(REFPROPVARIANT propvarIn, WCHAR **ret)
MultiByteToWideChar
(
CP_ACP
,
0
,
propvarIn
->
u
.
pszVal
,
-
1
,
res
,
len
);
}
break
;
case
VT_LPWSTR
:
case
VT_BSTR
:
if
(
propvarIn
->
u
.
pwszVal
)
{
DWORD
size
=
(
lstrlenW
(
propvarIn
->
u
.
pwszVal
)
+
1
)
*
sizeof
(
WCHAR
);
res
=
CoTaskMemAlloc
(
size
);
if
(
!
res
)
return
E_OUTOFMEMORY
;
memcpy
(
res
,
propvarIn
->
u
.
pwszVal
,
size
);
}
break
;
default:
FIXME
(
"Unsupported conversion (%d)
\n
"
,
propvarIn
->
vt
);
hr
=
E_FAIL
;
...
...
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