Nikolay Sivov : shlwapi: Remove a cast that's not really needed.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 6 14:50:56 CST 2016
Module: wine
Branch: master
Commit: 9171865661df71b3e0f629a9e73f7607a39f6688
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9171865661df71b3e0f629a9e73f7607a39f6688
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Jan 5 23:48:22 2016 +0300
shlwapi: Remove a cast that's not really needed.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shlwapi/stopwatch.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/shlwapi/stopwatch.c b/dlls/shlwapi/stopwatch.c
index 7a7007e..c7b4356 100644
--- a/dlls/shlwapi/stopwatch.c
+++ b/dlls/shlwapi/stopwatch.c
@@ -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;
}
More information about the wine-cvs
mailing list