patch of Ge van Geldorp <ge@gse.nl>: added error handling for BackupRead()

svn path=/trunk/; revision=6978
This commit is contained in:
Martin Fuchs 2003-12-12 21:01:35 +00:00
parent d59d3daf21
commit 2fac53c867

View file

@ -111,8 +111,9 @@ int ScanNTFSStreams(Entry* entry, HANDLE hFile)
}
}
if (!BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx)) // terminate BackupRead() loop
THROW_EXCEPTION(GetLastError());
if (ctx)
if (!BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx)) // terminate BackupRead() loop
THROW_EXCEPTION(GetLastError());
return cnt;
}