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
f2b8ccb7
Commit
f2b8ccb7
authored
Mar 15, 2022
by
Daniel Lehman
Committed by
Alexandre Julliard
Mar 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys: Implement InitVariantFromFileTime.
Signed-off-by:
Daniel Lehman
<
dlehman@esri.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ecf25e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
propsys.spec
dlls/propsys/propsys.spec
+1
-1
propvar.c
dlls/propsys/propvar.c
+15
-0
propvarutil.h
include/propvarutil.h
+1
-0
No files found.
dlls/propsys/propsys.spec
View file @
f2b8ccb7
...
...
@@ -49,7 +49,7 @@
@ stub InitVariantFromBooleanArray
@ stdcall InitVariantFromBuffer(ptr long ptr)
@ stub InitVariantFromDoubleArray
@ st
ub InitVariantFromFileTime
@ st
dcall InitVariantFromFileTime(ptr ptr)
@ stub InitVariantFromFileTimeArray
@ stdcall InitVariantFromGUIDAsString(ptr ptr)
@ stub InitVariantFromInt16Array
...
...
dlls/propsys/propvar.c
View file @
f2b8ccb7
...
...
@@ -672,6 +672,21 @@ HRESULT WINAPI InitVariantFromBuffer(const VOID *pv, UINT cb, VARIANT *pvar)
return
S_OK
;
}
HRESULT
WINAPI
InitVariantFromFileTime
(
const
FILETIME
*
ft
,
VARIANT
*
var
)
{
SYSTEMTIME
st
;
TRACE
(
"%p, %p
\n
"
,
ft
,
var
);
VariantInit
(
var
);
if
(
!
FileTimeToSystemTime
(
ft
,
&
st
))
return
E_INVALIDARG
;
if
(
!
SystemTimeToVariantTime
(
&
st
,
&
V_DATE
(
var
)))
return
E_INVALIDARG
;
V_VT
(
var
)
=
VT_DATE
;
return
S_OK
;
}
static
inline
DWORD
PROPVAR_HexToNum
(
const
WCHAR
*
hex
)
{
DWORD
ret
;
...
...
include/propvarutil.h
View file @
f2b8ccb7
...
...
@@ -71,6 +71,7 @@ typedef int PROPVAR_COMPARE_FLAGS;
HRESULT
WINAPI
PropVariantChangeType
(
PROPVARIANT
*
ppropvarDest
,
REFPROPVARIANT
propvarSrc
,
PROPVAR_CHANGE_FLAGS
flags
,
VARTYPE
vt
);
HRESULT
WINAPI
InitPropVariantFromGUIDAsString
(
REFGUID
guid
,
PROPVARIANT
*
ppropvar
);
HRESULT
WINAPI
InitVariantFromFileTime
(
const
FILETIME
*
ft
,
VARIANT
*
var
);
HRESULT
WINAPI
InitVariantFromGUIDAsString
(
REFGUID
guid
,
VARIANT
*
pvar
);
HRESULT
WINAPI
InitPropVariantFromBuffer
(
const
VOID
*
pv
,
UINT
cb
,
PROPVARIANT
*
ppropvar
);
HRESULT
WINAPI
InitPropVariantFromCLSID
(
REFCLSID
clsid
,
PROPVARIANT
*
ppropvar
);
...
...
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