Bug 623996 - Offline Application Cache Breaks with Iframe and Shared Empty Files, r=michal.novotny, a2.0=jst

This commit is contained in:
Honza Bambas 2011-02-12 14:06:02 +01:00
parent 45f051d06f
commit 32c0e9e64a

View File

@ -1541,7 +1541,7 @@ nsOfflineCacheDevice::OpenInputStreamForEntry(nsCacheEntry *entry,
*result = nsnull;
NS_ENSURE_TRUE(offset < entry->DataSize(), NS_ERROR_INVALID_ARG);
NS_ENSURE_TRUE(!offset || (offset < entry->DataSize()), NS_ERROR_INVALID_ARG);
// return an input stream to the entry's data file. the stream
// may be read on a background thread.