From 4e9b28f4a33faae136979b0e61767ecd20999647 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Thu, 16 Feb 2012 08:55:19 -0500 Subject: [PATCH] Bug 726503 - FILE_FLAG_SEQUENTIAL_SCAN always being passed for all file IO. r=taras --- xpcom/io/nsLocalFileWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 2ab691c43c8..67823c4af30 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -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; }