Misc coverity fixes.
CID 1412011, 1321904, 1322008, 1322151, 1321905

CORE-4375

svn path=/trunk/; revision=74921
This commit is contained in:
Pierre Schweitzer 2017-06-05 13:00:58 +00:00
parent d3e907f461
commit 2130f6ee4b
5 changed files with 6 additions and 4 deletions

View file

@ -1242,7 +1242,7 @@ UDFMarkStreamsForDeletion(
UDF_FCB_DELETE_PARENT);
} else {
AdPrint((" CLEAR stream DeleteOnClose\n"));
FileInfo->Fcb->FCBFlags &= !(UDF_FCB_DELETE_ON_CLOSE |
FileInfo->Fcb->FCBFlags &= ~(UDF_FCB_DELETE_ON_CLOSE |
UDF_FCB_DELETE_PARENT);
}
}

View file

@ -241,7 +241,7 @@ UDFIsMatchAllMask(
if((*Buffer) != DOS_QM)
return FALSE;
}
if(*DosOpen)
if(DosOpen)
*DosOpen = TRUE;
return TRUE;
} else
@ -253,7 +253,7 @@ UDFIsMatchAllMask(
return FALSE;
if(Buffer[2] != DOS_STAR)
return FALSE;
if(*DosOpen)
if(DosOpen)
*DosOpen = TRUE;
return TRUE;
} else {

View file

@ -612,6 +612,7 @@ UDFIndexDirectory(
if(DirNdx->FileEntryLoc.logicalBlockNum == (ULONG)-1) {
DirPrint((" err: FileEntryLoc=-1\n"));
DbgFreePool(buff);
UDFDirIndexFree(hDirNdx);
return STATUS_FILE_CORRUPT_ERROR;
}
DirNdx->FileCharacteristics = (FileInfo->FileIdent) ?

View file

@ -2640,6 +2640,7 @@ UDFBuildAllocDescs(
InitSz = Vcb->LBlockSize - FileInfo->Dloc->FileEntryLen;
Allocs = (int8*)MyAllocatePool__(NonPagedPool, InitSz);
if(!Allocs) {
*AllocData = NULL;
AdPrint(("BuildAllocDesc: cant alloc %x bytes for Allocs\n", InitSz));
return STATUS_INSUFFICIENT_RESOURCES;
}

View file

@ -391,7 +391,7 @@ UDFUpdateLogicalVolInt(
LVID_iUse = UDFGetLVIDiUse(Vcb);
if((LVID_iUse->minUDFReadRev == Vcb->minUDFReadRev) &&
(LVID_iUse->minUDFReadRev == Vcb->minUDFReadRev) &&
(LVID_iUse->minUDFWriteRev == Vcb->minUDFWriteRev) &&
(LVID_iUse->maxUDFWriteRev == Vcb->maxUDFWriteRev) &&
(LVID_iUse->numFiles == Vcb->numFiles) &&
(LVID_iUse->numDirs == Vcb->numDirs))