static int Initialize(int argc, const char *const argv[], DWORD flags);
static BOOL INIT_IncreaseDescriptorLimit(void);
-static LPWSTR INIT_FormatCommandLine (CPalThread *pThread, int argc, const char * const *argv);
-static LPWSTR INIT_FindEXEPath(CPalThread *pThread, LPCSTR exe_name);
+static LPWSTR INIT_FormatCommandLine (int argc, const char * const *argv);
+static LPWSTR INIT_FindEXEPath(LPCSTR exe_name);
#ifdef _DEBUG
extern void PROCDumpThreadList(void);
if (argc > 0 && argv != NULL)
{
/* build the command line */
- command_line = INIT_FormatCommandLine(pThread, argc, argv);
+ command_line = INIT_FormatCommandLine(argc, argv);
if (NULL == command_line)
{
ERROR("Error building command line\n");
}
/* find out the application's full path */
- exe_path = INIT_FindEXEPath(pThread, argv[0]);
+ exe_path = INIT_FindEXEPath(argv[0]);
if (NULL == exe_path)
{
ERROR("Unable to find exe path\n");
passed to argv as \\a... there may be other similar cases
-there may be other characters which must be escaped
--*/
-static LPWSTR INIT_FormatCommandLine (CPalThread *pThread, int argc, const char * const *argv)
+static LPWSTR INIT_FormatCommandLine (int argc, const char * const *argv)
{
LPWSTR retval;
LPSTR command_line=NULL, command_ptr;
command_ptr=command_line;
for(i=0; i<argc; i++)
{
- /* double-quote at beginning of argument containing at leat one space */
+ /* double-quote at beginning of argument containing at least one space */
for(j = 0; (argv[i][j] != 0) && (!isspace((unsigned char) argv[i][j])); j++);
if (argv[i][j] != 0)
This doesn't handle the case of directories with the desired name
(and directories are usually executable...)
--*/
-static LPWSTR INIT_FindEXEPath(CPalThread *pThread, LPCSTR exe_name)
+static LPWSTR INIT_FindEXEPath(LPCSTR exe_name)
{
#ifndef __APPLE__
CHAR real_path[PATH_MAX+1];