From 91c5b50b7f909528a4fa52b65df538c4d50cdce7 Mon Sep 17 00:00:00 2001 From: Richard Freeman Date: Sun, 9 Dec 2012 09:00:58 -0500 Subject: [PATCH] Fix for missing prs1 data offset bug. Signed-off-by: Richard Freeman --- SleepLib/loader_plugins/prs1_loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp index c59e2840..a9bd3f72 100644 --- a/SleepLib/loader_plugins/prs1_loader.cpp +++ b/SleepLib/loader_plugins/prs1_loader.cpp @@ -523,7 +523,7 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp, // up to this point appears to becorrect for 0x01 & 0x00 if (size<59) { - duration=data[offset+0x12] | (data[0x13] << 8); + duration=data[offset+0x12] | (data[offset+0x13] << 8); duration*=2; session->really_set_last(qint64(timestamp+duration)*1000L); if (max>0) { @@ -534,7 +534,7 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp, } else { // 0X28 & 0X29 is length on r5 - duration=data[offset+0x14] | (data[0x15] << 8); + duration=data[offset+0x14] | (data[offset+0x15] << 8); if (!duration) { qDebug() << "!duration exit"; delete session;