1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

mfplat: Use QueryPerformanceCounter in MFGetSystemTime.

This commit is contained in:
Rémi Bernon 2023-01-13 09:08:34 +01:00 committed by Alexandre Julliard
parent 0ce5584acc
commit 7cc24be079

View file

@ -974,11 +974,14 @@ HRESULT WINAPI MFTUnregisterLocal(IClassFactory *factory)
MFTIME WINAPI MFGetSystemTime(void)
{
MFTIME mf;
static LARGE_INTEGER frequency;
LARGE_INTEGER counter;
GetSystemTimeAsFileTime( (FILETIME*)&mf );
if (!frequency.QuadPart)
QueryPerformanceFrequency(&frequency);
QueryPerformanceCounter(&counter);
return mf;
return counter.QuadPart * 10000000 / frequency.QuadPart;
}
static BOOL mft_is_type_info_match(struct mft_registration *mft, const GUID *category, UINT32 flags,