Do not leak device descriptors in case of error

svn path=/trunk/; revision=43002
This commit is contained in:
Hervé Poussineau 2009-09-06 14:21:00 +00:00
parent fdc770befb
commit f0d54803ce

View file

@ -332,6 +332,7 @@ LONG ArcOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId)
if (!FileData[DeviceId].FileFuncTable)
{
/* Error, unable to detect file system */
pDevice->FuncTable->Close(DeviceId);
FileData[DeviceId].FuncTable = NULL;
return ENODEV;
}