rpcrt4: Specify the full application path when starting rpcss.exe.
This commit is contained in:
parent
0beaa44d7d
commit
c4ebf3687b
@ -79,30 +79,18 @@ static BOOL start_rpcss(void)
|
|||||||
{
|
{
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
STARTUPINFOW si;
|
STARTUPINFOW si;
|
||||||
static WCHAR cmd[6];
|
WCHAR cmd[MAX_PATH];
|
||||||
static const WCHAR rpcss[] = {'r','p','c','s','s',0};
|
static const WCHAR rpcss[] = {'\\','r','p','c','s','s','.','e','x','e',0};
|
||||||
BOOL rslt;
|
BOOL rslt;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
||||||
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
|
|
||||||
ZeroMemory(&si, sizeof(STARTUPINFOA));
|
ZeroMemory(&si, sizeof(STARTUPINFOA));
|
||||||
si.cb = sizeof(STARTUPINFOA);
|
si.cb = sizeof(STARTUPINFOA);
|
||||||
|
GetSystemDirectoryW( cmd, MAX_PATH - sizeof(rpcss)/sizeof(WCHAR) );
|
||||||
|
lstrcatW( cmd, rpcss );
|
||||||
|
|
||||||
memcpy(cmd, rpcss, sizeof(rpcss));
|
rslt = CreateProcessW( cmd, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi );
|
||||||
|
|
||||||
rslt = CreateProcessW(
|
|
||||||
NULL, /* executable */
|
|
||||||
cmd, /* command line */
|
|
||||||
NULL, /* process security attributes */
|
|
||||||
NULL, /* primary thread security attributes */
|
|
||||||
FALSE, /* inherit handles */
|
|
||||||
0, /* creation flags */
|
|
||||||
NULL, /* use parent's environment */
|
|
||||||
NULL, /* use parent's current directory */
|
|
||||||
&si, /* STARTUPINFO pointer */
|
|
||||||
&pi /* PROCESS_INFORMATION */
|
|
||||||
);
|
|
||||||
|
|
||||||
if (rslt)
|
if (rslt)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user