Remove obsolete code.
Modified: trunk/reactos/drivers/fs/cdfs/create.c
_____
Modified: trunk/reactos/drivers/fs/cdfs/create.c
--- trunk/reactos/drivers/fs/cdfs/create.c 2005-01-17 09:50:10 UTC
(rev 13094)
+++ trunk/reactos/drivers/fs/cdfs/create.c 2005-01-17 10:16:17 UTC
(rev 13095)
@@ -44,7 +44,6 @@
PUNICODE_STRING AbsoluteFileName)
{
ULONG Length;
-// PWSTR rcName;
PFCB Fcb;
NTSTATUS Status;
@@ -65,42 +64,29 @@
sizeof(WCHAR) +
RelativeFileName->Length +
sizeof(WCHAR);
-// ASSERT(wcslen (Fcb->PathName) + 1 + wcslen (pRelativeFileName) + 1
-// <= MAX_PATH);
-// rcName = ExAllocatePool(NonPagedPool, MAX_PATH * sizeof(WCHAR));
-// if (!rcName)
-// {
-// return(STATUS_INSUFFICIENT_RESOURCES);
-// }
AbsoluteFileName->Length = 0;
AbsoluteFileName->MaximumLength = Length;
AbsoluteFileName->Buffer = ExAllocatePool(NonPagedPool,
Length);
if (AbsoluteFileName->Buffer == NULL)
{
-CHECKPOINT1;
return STATUS_INSUFFICIENT_RESOURCES;
}
-
-// wcscpy(rcName, Fcb->PathName);
Status = RtlAppendUnicodeToString(AbsoluteFileName,
Fcb->PathName);
if (!NT_SUCCESS(Status))
{
-CHECKPOINT1;
RtlFreeUnicodeString(AbsoluteFileName);
return Status;
}
if (!CdfsFCBIsRoot(Fcb))
{
-// wcscat (rcName, L"\\");
Status = RtlAppendUnicodeToString(AbsoluteFileName,
L"\\");
if (!NT_SUCCESS(Status))
{
-CHECKPOINT1;
RtlFreeUnicodeString(AbsoluteFileName);
return Status;
}
@@ -110,14 +96,10 @@
RelativeFileName);
if (!NT_SUCCESS(Status))
{
-CHECKPOINT1;
RtlFreeUnicodeString(AbsoluteFileName);
return Status;
}
-// wcscat (rcName, pRelativeFileName);
-// *pAbsoluteFilename = rcName;
-
return STATUS_SUCCESS;
}
Show replies by date