зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
a94a5ac040
Коммит
0ba13612a8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче