mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
patch of Ge van Geldorp <ge@gse.nl>: added error handling for BackupRead()
svn path=/trunk/; revision=6978
This commit is contained in:
parent
d59d3daf21
commit
2fac53c867
1 changed files with 3 additions and 2 deletions
|
@ -111,8 +111,9 @@ int ScanNTFSStreams(Entry* entry, HANDLE hFile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx)) // terminate BackupRead() loop
|
if (ctx)
|
||||||
THROW_EXCEPTION(GetLastError());
|
if (!BackupRead(hFile, 0, 0, &read, TRUE, FALSE, &ctx)) // terminate BackupRead() loop
|
||||||
|
THROW_EXCEPTION(GetLastError());
|
||||||
|
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue