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
3a7fb757
Commit
3a7fb757
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: Make VT_FILETIME handling by PropVariantChangeType more implicit.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa8dc616
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
propvar.c
dlls/propsys/propvar.c
+9
-13
No files found.
dlls/propsys/propvar.c
View file @
3a7fb757
...
...
@@ -36,12 +36,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
propsys
);
static
HRESULT
PROPVAR_ConvertFILETIME
(
PROPVARIANT
*
ppropvarDest
,
REFPROPVARIANT
propvarSrc
,
VARTYPE
vt
)
static
HRESULT
PROPVAR_ConvertFILETIME
(
const
FILETIME
*
ft
,
PROPVARIANT
*
ppropvarDest
,
VARTYPE
vt
)
{
SYSTEMTIME
time
;
FileTimeToSystemTime
(
&
propvarSrc
->
u
.
filetime
,
&
time
);
FileTimeToSystemTime
(
ft
,
&
time
);
switch
(
vt
)
{
...
...
@@ -272,9 +271,12 @@ HRESULT WINAPI PropVariantChangeType(PROPVARIANT *ppropvarDest, REFPROPVARIANT p
FIXME
(
"(%p, %p, %d, %d, %d): semi-stub!
\n
"
,
ppropvarDest
,
propvarSrc
,
propvarSrc
->
vt
,
flags
,
vt
);
if
(
vt
==
propvarSrc
->
vt
)
if
(
vt
==
propvarSrc
->
vt
)
return
PropVariantCopy
(
ppropvarDest
,
propvarSrc
);
if
(
propvarSrc
->
vt
==
VT_FILETIME
)
return
PROPVAR_ConvertFILETIME
(
&
propvarSrc
->
u
.
filetime
,
ppropvarDest
,
vt
);
switch
(
vt
)
{
case
VT_I1
:
...
...
@@ -382,17 +384,11 @@ HRESULT WINAPI PropVariantChangeType(PROPVARIANT *ppropvarDest, REFPROPVARIANT p
}
return
hr
;
}
}
switch
(
propvarSrc
->
vt
)
{
case
VT_FILETIME
:
return
PROPVAR_ConvertFILETIME
(
ppropvarDest
,
propvarSrc
,
vt
);
default:
FIXME
(
"Unhandled source type: %d
\n
"
,
propvarSrc
->
vt
);
default:
FIXME
(
"Unhandled dest type: %d
\n
"
,
vt
);
return
E_FAIL
;
}
return
E_FAIL
;
}
static
void
PROPVAR_GUIDToWSTR
(
REFGUID
guid
,
WCHAR
*
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