summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/Aportis.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/Aportis.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/Aportis.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/Aportis.cpp b/noncore/apps/opie-reader/Aportis.cpp
index 353996c..37dcc99 100644
--- a/noncore/apps/opie-reader/Aportis.cpp
+++ b/noncore/apps/opie-reader/Aportis.cpp
@@ -55,4 +55,5 @@ CList<Bkmk>* Aportis::getbkmklist()
if (bCompressed != 4) return NULL;
CList<Bkmk>* t = new CList<Bkmk>;
+ unsuspend();
size_t cur = ftell(fin);
for (int i = 0; i < nRecs2; i++)
@@ -247,4 +248,5 @@ int Aportis::getch()
else
{
+unsuspend();
int c = getc(fin);
dePeanut(c);
@@ -264,4 +266,5 @@ int Aportis::getch()
// take a char from the input buffer
+unsuspend();
c = getc(fin);
dePeanut(c);
@@ -321,5 +324,5 @@ unsigned int Aportis::GetBS(unsigned int bn)
DWORD dwPos;
WORD fs;
-
+unsuspend();
fseek(fin, 0x56 + 8*bn, SEEK_SET);
fread(&dwPos, 4, 1, fin);
@@ -344,4 +347,5 @@ unsigned int Aportis::locate()
if (bCompressed == 4)
{
+unsuspend();
size_t cur = ftell(fin);
unsigned int clen = 0;
@@ -402,4 +406,5 @@ bool Aportis::refreshbuffer()
{
unsigned char t[3];
+ unsuspend();
fread(t,1,3,fin);
if (t[0] != 241)
@@ -431,4 +436,5 @@ bool Aportis::refreshbuffer()
QImage* Aportis::getPicture(unsigned long tgt)
{
+unsuspend();
unsigned short tgtrec = tgt+mobiimagerec;
if (tgtrec > nRecs2) return NULL;