no environment on WinCE
(cherry picked from commit 62e73a463cb7035192acdce6538c5b0248e643d4)
This commit is contained in:
parent
8bc9f1ca62
commit
8b7bebd45d
@ -281,6 +281,7 @@ static QString qt_create_commandline(const QString &program, const QStringList &
|
||||
QProcessEnvironment QProcessEnvironment::systemEnvironment()
|
||||
{
|
||||
QProcessEnvironment env;
|
||||
#if !defined(Q_OS_WINCE)
|
||||
// Calls to setenv() affect the low-level environment as well.
|
||||
// This is not the case the other way round.
|
||||
if (wchar_t *envStrings = GetEnvironmentStringsW()) {
|
||||
@ -296,9 +297,11 @@ QProcessEnvironment QProcessEnvironment::systemEnvironment()
|
||||
}
|
||||
FreeEnvironmentStringsW(envStrings);
|
||||
}
|
||||
#endif
|
||||
return env;
|
||||
}
|
||||
|
||||
#if !defined(Q_OS_WINCE)
|
||||
static QByteArray qt_create_environment(const QProcessEnvironmentPrivate::Hash &environment)
|
||||
{
|
||||
QByteArray envlist;
|
||||
@ -358,6 +361,7 @@ static QByteArray qt_create_environment(const QProcessEnvironmentPrivate::Hash &
|
||||
}
|
||||
return envlist;
|
||||
}
|
||||
#endif
|
||||
|
||||
void QProcessPrivate::startProcess()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user