mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
- Fix uninitialised variable problem in DIR command.
- Correct some comments.
This commit is contained in:
parent
64264be49b
commit
a9d0209c75
@ -8,11 +8,6 @@
|
||||
* environment-variable and batch parameter substitution already done.
|
||||
*/
|
||||
|
||||
/*
|
||||
* FIXME:
|
||||
* - DIR /S fails if the starting directory is not the current default.
|
||||
*/
|
||||
|
||||
#include "wcmd.h"
|
||||
|
||||
int WCMD_dir_sort (const void *a, const void *b);
|
||||
@ -36,7 +31,6 @@ __int64 byte_total;
|
||||
* WCMD_directory
|
||||
*
|
||||
* List a file directory.
|
||||
* FIXME: /S switch only works for the current directory
|
||||
*
|
||||
*/
|
||||
|
||||
@ -47,6 +41,8 @@ int status;
|
||||
ULARGE_INTEGER avail, total, free;
|
||||
|
||||
line_count = 5;
|
||||
byte_total = 0;
|
||||
file_total = dir_total = 0;
|
||||
page_mode = (strstr(quals, "/P") != NULL);
|
||||
recurse = (strstr(quals, "/S") != NULL);
|
||||
if (param1[0] == '\0') strcpy (param1, ".");
|
||||
|
Loading…
Reference in New Issue
Block a user