OSDN Git Service

Small code clean-up.
[lamexp/LameXP.git] / etc / Patches / deprecated / Qt-v4.8.5-QProcess-JobObjectsBugfix.V1.diff
1 diff --git "a/D:\\Qt\\QtSource\\4.8.5-VS2013\\src\\corelib\\io\\qprocess_win.ori" "b/D:\\Qt\\QtSource\\4.8.5-VS2013\\src\\corelib\\io\\qprocess_win.cpp"
2 index 6cf6d65..3b5c4fb 100644
3 --- "a/D:\\Qt\\QtSource\\4.8.5-VS2013\\src\\corelib\\io\\qprocess_win.ori"
4 +++ "b/D:\\Qt\\QtSource\\4.8.5-VS2013\\src\\corelib\\io\\qprocess_win.cpp"
5 @@ -414,6 +414,7 @@ void QProcessPrivate::startProcess()
6  #else
7      DWORD dwCreationFlags = CREATE_NO_WINDOW;
8      dwCreationFlags |= CREATE_UNICODE_ENVIRONMENT;
9 +    dwCreationFlags |= CREATE_BREAKAWAY_FROM_JOB;
10      STARTUPINFOW startupInfo = { sizeof( STARTUPINFO ), 0, 0, 0,
11                                   (ulong)CW_USEDEFAULT, (ulong)CW_USEDEFAULT,
12                                   (ulong)CW_USEDEFAULT, (ulong)CW_USEDEFAULT,
13 @@ -859,7 +860,7 @@ bool QProcessPrivate::startDetached(const QString &program, const QStringList &a
14                                       0, 0, 0, 0, 0, 0, 0, 0, 0, 0
15                                     };
16          success = CreateProcess(0, (wchar_t*)args.utf16(),
17 -                                0, 0, FALSE, CREATE_UNICODE_ENVIRONMENT | CREATE_NEW_CONSOLE, 0,
18 +                                0, 0, FALSE, CREATE_UNICODE_ENVIRONMENT | CREATE_NEW_CONSOLE | CREATE_BREAKAWAY_FROM_JOB, 0,
19                                  workingDir.isEmpty() ? 0 : (wchar_t*)workingDir.utf16(),
20                                  &startupInfo, &pinfo);
21  #endif // Q_OS_WINCE