Bug 726503 - FILE_FLAG_SEQUENTIAL_SCAN always being passed for all file IO. r=taras

This commit is contained in:
Brian R. Bondy 2012-02-16 08:55:19 -05:00
parent f432cc5381
commit e55c0ff914

View File

@ -380,7 +380,7 @@ OpenFile(const nsAFlatString &name, PRIntn osflags, PRIntn mode,
flag6 |= FILE_FLAG_DELETE_ON_CLOSE;
}
if (osflags && nsILocalFile::OS_READAHEAD) {
if (osflags & nsILocalFile::OS_READAHEAD) {
flag6 |= FILE_FLAG_SEQUENTIAL_SCAN;
}