diff --git a/reactos/subsys/system/explorer/shell/winfs.cpp b/reactos/subsys/system/explorer/shell/winfs.cpp index 57595f0f654..cdb0de4ff2c 100644 --- a/reactos/subsys/system/explorer/shell/winfs.cpp +++ b/reactos/subsys/system/explorer/shell/winfs.cpp @@ -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; }