From da8b01357d10058d0bcd09c16258ad7f604018e1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 8 Jan 2019 17:19:04 +0100 Subject: [PATCH] Proper skipping of locks in 0.4.1+ (fixes compare menu). --- server/TracyWorker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 1558f524..47fb1b0b 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -656,6 +656,10 @@ Worker::Worker( FileRead& f, EventType::Type eventMask ) f.Skip( sizeof( uint32_t ) + sizeof( LockMap::srcloc ) ); f.Read( type ); f.Skip( sizeof( LockMap::valid ) ); + if( fileVer >= FileVersion( 0, 4, 1 ) ) + { + f.Skip( sizeof( LockMap::timeAnnounce ) + sizeof( LockMap::timeTerminate ) ); + } f.Read( tsz ); f.Skip( tsz * sizeof( uint64_t ) ); f.Read( tsz );