From d1c7029b34d1de78774325fe3336580801e064ab Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 29 Mar 2010 15:47:58 +0200 Subject: [PATCH] rpcrt4: Always start the 64-bit version of rpcss.exe on Wow64. --- dlls/rpcrt4/rpc_epmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/rpcrt4/rpc_epmap.c b/dlls/rpcrt4/rpc_epmap.c index b81367e4160..ac7f25bee0e 100644 --- a/dlls/rpcrt4/rpc_epmap.c +++ b/dlls/rpcrt4/rpc_epmap.c @@ -82,6 +82,7 @@ static BOOL start_rpcss(void) WCHAR cmd[MAX_PATH]; static const WCHAR rpcss[] = {'\\','r','p','c','s','s','.','e','x','e',0}; BOOL rslt; + void *redir; TRACE("\n"); @@ -90,7 +91,9 @@ static BOOL start_rpcss(void) GetSystemDirectoryW( cmd, MAX_PATH - sizeof(rpcss)/sizeof(WCHAR) ); lstrcatW( cmd, rpcss ); + Wow64DisableWow64FsRedirection( &redir ); rslt = CreateProcessW( cmd, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ); + Wow64RevertWow64FsRedirection( redir ); if (rslt) {