Fixed bugs and added DIRS command.

svn path=/trunk/; revision=723
This commit is contained in:
Eric Kohl 1999-10-23 18:17:37 +00:00
parent 583a7209da
commit 36f33622cc
10 changed files with 223 additions and 86 deletions

View file

@ -217,23 +217,26 @@ VOID InitializeAlias (VOID)
VOID DestroyAlias (VOID)
{
while (lpFirst->next != NULL)
{
lpLast = lpFirst;
lpFirst = lpLast->next;
if (lpFirst == NULL)
return;
free (lpLast->lpName);
free (lpLast->lpSubst);
free (lpLast);
}
while (lpFirst->next != NULL)
{
lpLast = lpFirst;
lpFirst = lpLast->next;
free (lpFirst->lpName);
free (lpFirst->lpSubst);
free (lpFirst);
free (lpLast->lpName);
free (lpLast->lpSubst);
free (lpLast);
}
lpFirst = NULL;
lpLast = NULL;
dwUsed = 0;
free (lpFirst->lpName);
free (lpFirst->lpSubst);
free (lpFirst);
lpFirst = NULL;
lpLast = NULL;
dwUsed = 0;
}
/* specified routines */