mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Minor changes to remove warnings
"memmory" -> "memory" svn path=/trunk/; revision=13883
This commit is contained in:
parent
a285c15efb
commit
ac74a57d42
2 changed files with 9 additions and 14 deletions
|
@ -1646,9 +1646,9 @@ ULARGE_INTEGER u64Temp; /* A temporary counter */
|
||||||
if ((ptrStartNode = malloc(sizeof(struct TDirFindListNode))) == NULL)
|
if ((ptrStartNode = malloc(sizeof(struct TDirFindListNode))) == NULL)
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
ConErrPrintf("DEBUG: Cannot allocate memmory for ptrStartNode!\n");
|
ConErrPrintf("DEBUG: Cannot allocate memory for ptrStartNode!\n");
|
||||||
#endif
|
#endif
|
||||||
return 1; /* Error cannot allocate memmory for 1st object */
|
return 1; /* Error cannot allocate memory for 1st object */
|
||||||
}
|
}
|
||||||
ptrNextNode = ptrStartNode;
|
ptrNextNode = ptrStartNode;
|
||||||
|
|
||||||
|
@ -1701,6 +1701,7 @@ ULARGE_INTEGER u64Temp; /* A temporary counter */
|
||||||
|
|
||||||
}
|
}
|
||||||
}while(FindNextFile(hSearch,&wfdFileInfo));
|
}while(FindNextFile(hSearch,&wfdFileInfo));
|
||||||
|
FindClose(hSearch);
|
||||||
|
|
||||||
/* Terminate list */
|
/* Terminate list */
|
||||||
ptrNextNode->ptrNext = NULL;
|
ptrNextNode->ptrNext = NULL;
|
||||||
|
@ -1710,7 +1711,7 @@ ULARGE_INTEGER u64Temp; /* A temporary counter */
|
||||||
if (!(ptrFileArray))
|
if (!(ptrFileArray))
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
ConErrPrintf("DEBUG: Cannot allocate memmory for ptrFileArray!\n");
|
ConErrPrintf("DEBUG: Cannot allocate memory for ptrFileArray!\n");
|
||||||
#endif
|
#endif
|
||||||
goto _DirList_clear_n_exit;
|
goto _DirList_clear_n_exit;
|
||||||
}
|
}
|
||||||
|
@ -1732,6 +1733,9 @@ ULARGE_INTEGER u64Temp; /* A temporary counter */
|
||||||
|
|
||||||
/* Print Data */
|
/* Print Data */
|
||||||
DirPrintFiles(ptrFileArray, dwCount, szFullPath, lpFlags);
|
DirPrintFiles(ptrFileArray, dwCount, szFullPath, lpFlags);
|
||||||
|
|
||||||
|
/* Free array */
|
||||||
|
free(ptrFileArray);
|
||||||
|
|
||||||
/* Print Directory Summary */
|
/* Print Directory Summary */
|
||||||
/* Condition to print summary is:
|
/* Condition to print summary is:
|
||||||
|
@ -1774,10 +1778,11 @@ ULARGE_INTEGER u64Temp; /* A temporary counter */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}while(FindNextFile(hRecSearch,&wfdFileInfo));
|
}while(FindNextFile(hRecSearch,&wfdFileInfo));
|
||||||
|
FindClose(hRecSearch);
|
||||||
}
|
}
|
||||||
|
|
||||||
_DirList_clear_n_exit:
|
_DirList_clear_n_exit:
|
||||||
/* Deallocate memmory */
|
/* Deallocate memory */
|
||||||
/* Free linked list */
|
/* Free linked list */
|
||||||
while (ptrStartNode)
|
while (ptrStartNode)
|
||||||
{
|
{
|
||||||
|
@ -1786,14 +1791,6 @@ _DirList_clear_n_exit:
|
||||||
ptrStartNode = ptrNextNode;
|
ptrStartNode = ptrNextNode;
|
||||||
dwCount --;
|
dwCount --;
|
||||||
}
|
}
|
||||||
/* Free array */
|
|
||||||
free(ptrFileArray);
|
|
||||||
|
|
||||||
/* Close Handles */
|
|
||||||
if (hSearch != INVALID_HANDLE_VALUE)
|
|
||||||
FindClose(hSearch);
|
|
||||||
if (hRecSearch != INVALID_HANDLE_VALUE)
|
|
||||||
FindClose(hRecSearch);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,6 @@ Fix bugs :)
|
||||||
Optimize the code! For size and speed. There are numerous places
|
Optimize the code! For size and speed. There are numerous places
|
||||||
where the code is hardly optimal for either.
|
where the code is hardly optimal for either.
|
||||||
|
|
||||||
Sorting in DIR command ("dir /o...").
|
|
||||||
|
|
||||||
^S and ^Q to pause/resume displays.
|
^S and ^Q to pause/resume displays.
|
||||||
|
|
||||||
Improve DEL, COPY and MOVE commands.
|
Improve DEL, COPY and MOVE commands.
|
||||||
|
|
Loading…
Reference in a new issue