rpcrt4: Always start the 64-bit version of rpcss.exe on Wow64.
This commit is contained in:
parent
a8e2f4327f
commit
d1c7029b34
|
@ -82,6 +82,7 @@ static BOOL start_rpcss(void)
|
||||||
WCHAR cmd[MAX_PATH];
|
WCHAR cmd[MAX_PATH];
|
||||||
static const WCHAR rpcss[] = {'\\','r','p','c','s','s','.','e','x','e',0};
|
static const WCHAR rpcss[] = {'\\','r','p','c','s','s','.','e','x','e',0};
|
||||||
BOOL rslt;
|
BOOL rslt;
|
||||||
|
void *redir;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
||||||
|
@ -90,7 +91,9 @@ static BOOL start_rpcss(void)
|
||||||
GetSystemDirectoryW( cmd, MAX_PATH - sizeof(rpcss)/sizeof(WCHAR) );
|
GetSystemDirectoryW( cmd, MAX_PATH - sizeof(rpcss)/sizeof(WCHAR) );
|
||||||
lstrcatW( cmd, rpcss );
|
lstrcatW( cmd, rpcss );
|
||||||
|
|
||||||
|
Wow64DisableWow64FsRedirection( &redir );
|
||||||
rslt = CreateProcessW( cmd, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi );
|
rslt = CreateProcessW( cmd, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi );
|
||||||
|
Wow64RevertWow64FsRedirection( redir );
|
||||||
|
|
||||||
if (rslt)
|
if (rslt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue