mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CDFS]
- Fix broken if statement - Remove deadcode CID #502181 CID #502438 CID #716663 svn path=/trunk/; revision=62660
This commit is contained in:
parent
cf4a5c8d11
commit
9315f42c8f
2 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
|
|
|
@ -439,8 +439,6 @@ ByeBye:
|
|||
ObDereferenceObject(DeviceExt->StreamFileObject);
|
||||
if (Fcb)
|
||||
ExFreePool(Fcb);
|
||||
if (Ccb)
|
||||
ExFreePool(Ccb);
|
||||
if (NewDeviceObject)
|
||||
IoDeleteDevice(NewDeviceObject);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue