Commit 75884648 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit 14.1.11 upon wine-1.7.25

parent 6ff0ba17
......@@ -2651,6 +2651,33 @@ static BOOL create_process_impl( LPCWSTR app_name, LPWSTR cmd_line, LPSECURITY_A
return FALSE;
if (hFile == INVALID_HANDLE_VALUE) goto done;
/* CROSSOVER HACK: bug 13322 (winehq bug 39403)
* Insert --no-sandbox in command line of Steam's web helper process to
* work around problems hooking our ntdll exports. */
{
static const WCHAR steamwebhelperexeW[] = {'s','t','e','a','m','w','e','b','h','e','l','p','e','r','.','e','x','e',0};
static const WCHAR nosandboxW[] = {' ','-','-','n','o','-','s','a','n','d','b','o','x',0};
if (strstrW(name, steamwebhelperexeW))
{
LPWSTR new_command_line;
new_command_line = HeapAlloc(GetProcessHeap(), 0,
sizeof(WCHAR) * (strlenW(tidy_cmdline) + strlenW(nosandboxW) + 1));
if (!new_command_line) return FALSE;
strcpyW(new_command_line, tidy_cmdline);
strcatW(new_command_line, nosandboxW);
TRACE("CrossOver hack changing command line to %s\n", debugstr_w(new_command_line));
if (tidy_cmdline != cmd_line) HeapFree( GetProcessHeap(), 0, tidy_cmdline );
tidy_cmdline = new_command_line;
}
}
/* end CROSSOVER HACK */
/* Warn if unsupported features are used */
if (flags & (IDLE_PRIORITY_CLASS | HIGH_PRIORITY_CLASS | REALTIME_PRIORITY_CLASS |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment