1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-27 13:43:17 +00:00

Added workaround for Windows System bug in execve() family of functions, in older windows releases.

This commit is contained in:
Bryan Roe
2021-08-03 13:50:33 -07:00
parent b550dd7a53
commit 365dfbc298

View File

@@ -4429,6 +4429,7 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char **
int resetNodeId = 0;
#ifdef WIN32
int pLen;
SetEnvironmentVariableA((LPCSTR)"=c:", (LPCTSTR)"__DUMMY__"); // This is requried to work around a Win32 bug in construct_environment_block()
#endif
#ifdef _POSIX
#ifndef __APPLE__