зеркало из https://github.com/mozilla/pjs.git
Close the correct file descriptor. Bug 346250, patch by Alfred Kayser
<alfredkayser@nl.ibm.com>, r=darin, sr=bzbarsky
This commit is contained in:
Родитель
f1f22d3455
Коммит
7b4083dc72
|
@ -789,7 +789,7 @@ nsDiskCacheMap::WriteDiskCacheEntry(nsDiskCacheBinding * binding)
|
|||
diskEntry->Swap();
|
||||
PRInt32 bytesWritten = PR_Write(fd, diskEntry, size);
|
||||
|
||||
PRStatus err = PR_Close(mMapFD);
|
||||
PRStatus err = PR_Close(fd);
|
||||
if ((bytesWritten != (PRInt32)size) || (err != PR_SUCCESS)) {
|
||||
rv = NS_ERROR_UNEXPECTED;
|
||||
goto exit;
|
||||
|
|
Загрузка…
Ссылка в новой задаче