Commit 91718656 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shlwapi: Remove a cast that's not really needed.

parent 3bc2ec33
......@@ -190,16 +190,16 @@ void WINAPI StopWatch_MarkJavaStop(LPCWSTR lpszEvent, HWND hWnd, DWORD dwReserve
*/
DWORD WINAPI GetPerfTime(void)
{
static LONG64 iCounterFreq = 0;
static LARGE_INTEGER iCounterFreq = { 0 };
LARGE_INTEGER iCounter;
TRACE("()\n");
if (!iCounterFreq)
QueryPerformanceFrequency((LARGE_INTEGER*)&iCounterFreq);
if (!iCounterFreq.QuadPart)
QueryPerformanceFrequency(&iCounterFreq);
QueryPerformanceCounter(&iCounter);
iCounter.QuadPart = iCounter.QuadPart * 1000 / iCounterFreq;
iCounter.QuadPart = iCounter.QuadPart * 1000 / iCounterFreq.QuadPart;
return iCounter.u.LowPart;
}
......
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