mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Fixed application file name (absolute path) in command line.
svn path=/trunk/; revision=566
This commit is contained in:
parent
8ae06e50f1
commit
4d7dcc6886
1 changed files with 15 additions and 2 deletions
|
@ -426,11 +426,24 @@ WINBOOL STDCALL CreateProcessW(LPCWSTR lpApplicationName,
|
||||||
ULONG InitialViewSize;
|
ULONG InitialViewSize;
|
||||||
PROCESS_BASIC_INFORMATION ProcessBasicInfo;
|
PROCESS_BASIC_INFORMATION ProcessBasicInfo;
|
||||||
ULONG retlen;
|
ULONG retlen;
|
||||||
|
DWORD len = 0;
|
||||||
|
|
||||||
DPRINT("CreateProcessW(lpApplicationName '%w', lpCommandLine '%w')\n",
|
DPRINT("CreateProcessW(lpApplicationName '%w', lpCommandLine '%w')\n",
|
||||||
lpApplicationName,lpCommandLine);
|
lpApplicationName,lpCommandLine);
|
||||||
|
|
||||||
|
if (lpApplicationName[1] != ':')
|
||||||
|
{
|
||||||
|
len = GetCurrentDirectoryW(MAX_PATH,TempCommandLine);
|
||||||
|
if (TempCommandLine[len - 1] != L'\\')
|
||||||
|
{
|
||||||
|
TempCommandLine[len] = L'\\';
|
||||||
|
TempCommandLine[len + 1] = 0;
|
||||||
|
}
|
||||||
|
wcscat(TempCommandLine,lpApplicationName);
|
||||||
|
}
|
||||||
|
else
|
||||||
wcscpy(TempCommandLine, lpApplicationName);
|
wcscpy(TempCommandLine, lpApplicationName);
|
||||||
|
|
||||||
if (lpCommandLine != NULL)
|
if (lpCommandLine != NULL)
|
||||||
{
|
{
|
||||||
wcscat(TempCommandLine, L" ");
|
wcscat(TempCommandLine, L" ");
|
||||||
|
|
Loading…
Reference in a new issue