mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +00:00
one more correction
svn path=/trunk/; revision=6867
This commit is contained in:
parent
3e8376db45
commit
ba1e3f3b39
1 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ int ScanNTFSStreams(Entry* entry, HANDLE hFile)
|
||||||
DWORD error = GetLastError();
|
DWORD error = GetLastError();
|
||||||
|
|
||||||
if (error != ERROR_SEEK) {
|
if (error != ERROR_SEEK) {
|
||||||
BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx);
|
BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx); // terminate BackupRead() loop
|
||||||
THROW_EXCEPTION(error);
|
THROW_EXCEPTION(error);
|
||||||
//break;
|
//break;
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ int ScanNTFSStreams(Entry* entry, HANDLE hFile)
|
||||||
BYTE buffer[4096];
|
BYTE buffer[4096];
|
||||||
|
|
||||||
while(hdr.Size.QuadPart > 0) {
|
while(hdr.Size.QuadPart > 0) {
|
||||||
if (!BackupRead(hFile, buffer, sizeof(buffer), &read, FALSE, FALSE, &ctx))
|
if (!BackupRead(hFile, buffer, sizeof(buffer), &read, FALSE, FALSE, &ctx) || read!=sizeof(buffer))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
hdr.Size.QuadPart -= read;
|
hdr.Size.QuadPart -= read;
|
||||||
|
@ -111,7 +111,7 @@ int ScanNTFSStreams(Entry* entry, HANDLE hFile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx))
|
if (!BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx)) // terminate BackupRead() loop
|
||||||
THROW_EXCEPTION(GetLastError());
|
THROW_EXCEPTION(GetLastError());
|
||||||
|
|
||||||
return cnt;
|
return cnt;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue