mirror of
https://github.com/reactos/reactos.git
synced 2026-07-04 14:04:22 +08:00
Added directory listing support for the shell
Correctec bug that prevented listing the root directory in the vfat fsd Corrected mistake where the SL_xxx constants were too long svn path=/trunk/; revision=145
This commit is contained in:
@@ -53,7 +53,7 @@ void ExecuteDir(char* cmdline)
|
||||
HANDLE shandle;
|
||||
WIN32_FIND_DATA FindData;
|
||||
|
||||
shandle = FindFirstFile("*.*",&FindData);
|
||||
shandle = FindFirstFile("*",&FindData);
|
||||
|
||||
if (shandle==INVALID_HANDLE_VALUE)
|
||||
{
|
||||
@@ -94,12 +94,13 @@ int ExecuteProcess(char* name, char* cmdline)
|
||||
PROCESS_INFORMATION ProcessInformation;
|
||||
STARTUPINFO StartupInfo;
|
||||
char arguments;
|
||||
BOOL ret;
|
||||
|
||||
memset(&StartupInfo,0,sizeof(StartupInfo));
|
||||
StartupInfo.cb = sizeof(STARTUPINFO);
|
||||
StartupInfo.lpTitle = name;
|
||||
|
||||
return(CreateProcessA(name,
|
||||
ret = CreateProcessA(name,
|
||||
cmdline,
|
||||
NULL,
|
||||
NULL,
|
||||
@@ -108,7 +109,12 @@ int ExecuteProcess(char* name, char* cmdline)
|
||||
NULL,
|
||||
NULL,
|
||||
&StartupInfo,
|
||||
&ProcessInformation));
|
||||
&ProcessInformation);
|
||||
if (ret)
|
||||
{
|
||||
WaitForSingleObject(ProcessInformation.hProcess,INFINITE);
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
|
||||
void ExecuteCommand(char* line)
|
||||
|
||||
Reference in New Issue
Block a user