Commit 7cc24be0 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

mfplat: Use QueryPerformanceCounter in MFGetSystemTime.

parent 0ce5584a
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment