Fix skipping lock data with new dump version.

This commit is contained in:
Bartosz Taudul 2018-04-22 01:26:51 +02:00
parent 470bfb5c02
commit 1fb47899b2

View File

@ -402,7 +402,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
f.Read( &tsz, sizeof( tsz ) );
if( fileVer >= FileVersion( 0, 3, 0 ) )
{
f.Skip( sizeof( LockEvent::time ) + sizeof( LockEvent::type ) + sizeof( LockEvent::srcloc ) + sizeof( LockEvent::thread ) );
f.Skip( tsz * ( sizeof( LockEvent::time ) + sizeof( LockEvent::type ) + sizeof( LockEvent::srcloc ) + sizeof( LockEvent::thread ) ) );
}
else
{