Implementation of TouchFileTimes(), thanks to Florian Stinglmayr for
submitting a rough draft.
This commit is contained in:
parent
e3c1c249a8
commit
02aa8d50af
|
@ -61,12 +61,17 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* TouchFileTimes (IMAGEHLP.@)
|
* TouchFileTimes (IMAGEHLP.@)
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI TouchFileTimes(
|
BOOL WINAPI TouchFileTimes(HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
|
||||||
HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
|
|
||||||
{
|
{
|
||||||
FIXME("(%p, %p): stub\n",
|
FILETIME FileTime;
|
||||||
FileHandle, lpSystemTime
|
SYSTEMTIME SystemTime;
|
||||||
);
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
if(lpSystemTime == NULL)
|
||||||
return FALSE;
|
{
|
||||||
|
GetSystemTime(&SystemTime);
|
||||||
|
lpSystemTime = &SystemTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (SystemTimeToFileTime(lpSystemTime, &FileTime) &&
|
||||||
|
SetFileTime(FileHandle, NULL, NULL, &FileTime));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue