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
db7e816c
Commit
db7e816c
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_LPSTR to PropVariantChangeType.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a7fb757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
propvar.c
dlls/propsys/propvar.c
+25
-0
No files found.
dlls/propsys/propvar.c
View file @
db7e816c
...
...
@@ -385,6 +385,31 @@ HRESULT WINAPI PropVariantChangeType(PROPVARIANT *ppropvarDest, REFPROPVARIANT p
return
hr
;
}
case
VT_LPSTR
:
{
WCHAR
*
resW
;
hr
=
PropVariantToStringAlloc
(
propvarSrc
,
&
resW
);
if
(
SUCCEEDED
(
hr
))
{
char
*
res
;
DWORD
len
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
resW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
res
=
CoTaskMemAlloc
(
len
);
if
(
res
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
resW
,
-
1
,
res
,
len
,
NULL
,
NULL
);
ppropvarDest
->
vt
=
VT_LPSTR
;
ppropvarDest
->
u
.
pszVal
=
res
;
}
else
hr
=
E_OUTOFMEMORY
;
CoTaskMemFree
(
resW
);
}
return
hr
;
}
default:
FIXME
(
"Unhandled dest type: %d
\n
"
,
vt
);
return
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