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.@)
|
||||
*/
|
||||
BOOL WINAPI TouchFileTimes(
|
||||
HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
|
||||
BOOL WINAPI TouchFileTimes(HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
|
||||
{
|
||||
FIXME("(%p, %p): stub\n",
|
||||
FileHandle, lpSystemTime
|
||||
);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
FILETIME FileTime;
|
||||
SYSTEMTIME SystemTime;
|
||||
|
||||
if(lpSystemTime == NULL)
|
||||
{
|
||||
GetSystemTime(&SystemTime);
|
||||
lpSystemTime = &SystemTime;
|
||||
}
|
||||
|
||||
return (SystemTimeToFileTime(lpSystemTime, &FileTime) &&
|
||||
SetFileTime(FileHandle, NULL, NULL, &FileTime));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue