mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
[SCRRUN] Sync with Wine Staging 2.9. CORE-13362
f601660 scrrun: Added DateLastModified property for IFile. svn path=/trunk/; revision=74845
This commit is contained in:
parent
1866b31f5e
commit
f3782aaf23
2 changed files with 25 additions and 4 deletions
|
@ -2699,6 +2699,21 @@ static HRESULT WINAPI file_put_Attributes(IFile *iface, FileAttribute pfa)
|
||||||
return SetFileAttributesW(This->path, pfa) ? S_OK : create_error(GetLastError());
|
return SetFileAttributesW(This->path, pfa) ? S_OK : create_error(GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static HRESULT get_date_from_filetime(const FILETIME *ft, DATE *date)
|
||||||
|
{
|
||||||
|
FILETIME ftlocal;
|
||||||
|
SYSTEMTIME st;
|
||||||
|
|
||||||
|
if (!date)
|
||||||
|
return E_POINTER;
|
||||||
|
|
||||||
|
FileTimeToLocalFileTime(ft, &ftlocal);
|
||||||
|
FileTimeToSystemTime(&ftlocal, &st);
|
||||||
|
SystemTimeToVariantTime(&st, date);
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI file_get_DateCreated(IFile *iface, DATE *pdate)
|
static HRESULT WINAPI file_get_DateCreated(IFile *iface, DATE *pdate)
|
||||||
{
|
{
|
||||||
struct file *This = impl_from_IFile(iface);
|
struct file *This = impl_from_IFile(iface);
|
||||||
|
@ -2706,11 +2721,17 @@ static HRESULT WINAPI file_get_DateCreated(IFile *iface, DATE *pdate)
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI file_get_DateLastModified(IFile *iface, DATE *pdate)
|
static HRESULT WINAPI file_get_DateLastModified(IFile *iface, DATE *date)
|
||||||
{
|
{
|
||||||
struct file *This = impl_from_IFile(iface);
|
struct file *This = impl_from_IFile(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, pdate);
|
WIN32_FILE_ATTRIBUTE_DATA attrs;
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, date);
|
||||||
|
|
||||||
|
if (GetFileAttributesExW(This->path, GetFileExInfoStandard, &attrs))
|
||||||
|
return get_date_from_filetime(&attrs.ftLastWriteTime, date);
|
||||||
|
|
||||||
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI file_get_DateLastAccessed(IFile *iface, DATE *pdate)
|
static HRESULT WINAPI file_get_DateLastAccessed(IFile *iface, DATE *pdate)
|
||||||
|
|
|
@ -165,7 +165,7 @@ reactos/dll/win32/rsabase # Synced to WineStaging-1.9.11
|
||||||
reactos/dll/win32/rsaenh # Synced to WineStaging-2.9
|
reactos/dll/win32/rsaenh # Synced to WineStaging-2.9
|
||||||
reactos/dll/win32/sccbase # Synced to WineStaging-1.9.11
|
reactos/dll/win32/sccbase # Synced to WineStaging-1.9.11
|
||||||
reactos/dll/win32/schannel # Synced to WineStaging-1.9.11
|
reactos/dll/win32/schannel # Synced to WineStaging-1.9.11
|
||||||
reactos/dll/win32/scrrun # Synced to WineStaging-2.2
|
reactos/dll/win32/scrrun # Synced to WineStaging-2.9
|
||||||
reactos/dll/win32/secur32 # Forked
|
reactos/dll/win32/secur32 # Forked
|
||||||
reactos/dll/win32/security # Forked (different .spec)
|
reactos/dll/win32/security # Forked (different .spec)
|
||||||
reactos/dll/win32/sensapi # Synced to WineStaging-1.9.11
|
reactos/dll/win32/sensapi # Synced to WineStaging-1.9.11
|
||||||
|
|
Loading…
Reference in a new issue