mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
patch of Ge van Geldorp <[email protected]>: added error handling for BackupRead()
svn path=/trunk/; revision=6978
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user