- Fix broken if statement
- Remove deadcode

CID #502181
CID #502438
CID #716663

svn path=/trunk/; revision=62660
This commit is contained in:
Pierre Schweitzer 2014-04-06 15:43:06 +00:00
parent cf4a5c8d11
commit 9315f42c8f
2 changed files with 1 additions and 3 deletions

View file

@ -303,7 +303,7 @@ CdfsFindFile(PDEVICE_EXTENSION DeviceExt,
if (FsRtlIsNameInExpression(&FileToFindUpcase, &LongName, TRUE, NULL) ||
FsRtlIsNameInExpression(&FileToFindUpcase, &ShortName, TRUE, NULL))
{
if (Parent && Parent->PathName)
if (Parent->PathName[0])
{
len = wcslen(Parent->PathName);
memcpy(Fcb->PathName, Parent->PathName, len*sizeof(WCHAR));

View file

@ -439,8 +439,6 @@ ByeBye:
ObDereferenceObject(DeviceExt->StreamFileObject);
if (Fcb)
ExFreePool(Fcb);
if (Ccb)
ExFreePool(Ccb);
if (NewDeviceObject)
IoDeleteDevice(NewDeviceObject);
}