mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
Fixed bugs and added DIRS command.
svn path=/trunk/; revision=723
This commit is contained in:
parent
583a7209da
commit
36f33622cc
10 changed files with 223 additions and 86 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue