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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-01-05 23:48:22 +03:00 committed by Alexandre Julliard
parent 3bc2ec3371
commit 9171865661
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}