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
8eb7843d
Commit
8eb7843d
authored
Aug 22, 2022
by
Robert Wilhelm
Committed by
Alexandre Julliard
Aug 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Added DateCreated property for IFile.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=42857
parent
51604ad1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
filesystem.c
dlls/scrrun/filesystem.c
+9
-3
filesystem.c
dlls/scrrun/tests/filesystem.c
+8
-0
No files found.
dlls/scrrun/filesystem.c
View file @
8eb7843d
...
...
@@ -2947,11 +2947,17 @@ static HRESULT get_date_from_filetime(const FILETIME *ft, DATE *date)
return
S_OK
;
}
static
HRESULT
WINAPI
file_get_DateCreated
(
IFile
*
iface
,
DATE
*
p
date
)
static
HRESULT
WINAPI
file_get_DateCreated
(
IFile
*
iface
,
DATE
*
date
)
{
struct
file
*
This
=
impl_from_IFile
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pdate
);
return
E_NOTIMPL
;
WIN32_FILE_ATTRIBUTE_DATA
attrs
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
date
);
if
(
GetFileAttributesExW
(
This
->
path
,
GetFileExInfoStandard
,
&
attrs
))
return
get_date_from_filetime
(
&
attrs
.
ftCreationTime
,
date
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
file_get_DateLastModified
(
IFile
*
iface
,
DATE
*
date
)
...
...
dlls/scrrun/tests/filesystem.c
View file @
8eb7843d
...
...
@@ -635,6 +635,14 @@ static void test_GetFile(void)
hr
=
IFileSystem3_GetFile
(
fs3
,
path
,
&
file
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IFile_get_DateCreated
(
file
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#lx.
\n
"
,
hr
);
date
=
0
.
0
;
hr
=
IFile_get_DateCreated
(
file
,
&
date
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
date
>
0
.
0
,
"got %f
\n
"
,
date
);
hr
=
IFile_get_DateLastModified
(
file
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
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