]> git.sesse.net Git - vlc/commitdiff
mtime.c: previous codepath prevented RTC from ever being used on win32
authorDamien Fouilleul <damienf@videolan.org>
Wed, 10 Jan 2007 22:41:06 +0000 (22:41 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Wed, 10 Jan 2007 22:41:06 +0000 (22:41 +0000)
src/misc/mtime.c

index 7a5ab5e7b81c224217029e90c8a7391e56501574..82230d162b1a0d2f92b8497c2a5259330287b648 100644 (file)
@@ -158,7 +158,7 @@ mtime_t mdate( void )
         LARGE_INTEGER buf;
 
         freq = ( QueryPerformanceFrequency( &buf ) &&
-                 (freq == I64C(1193182) || freq == I64C(3579545) ) )
+                 (buf.QuadPart == I64C(1193182) || buf.QuadPart == I64C(3579545) ) )
                ? buf.QuadPart : 0;
     }