Fixed Windows build errors
authorVictor Kirhenshtein <victor@netxms.org>
Tue, 1 Dec 2015 11:07:05 +0000 (07:07 -0400)
committerVictor Kirhenshtein <victor@netxms.org>
Tue, 1 Dec 2015 11:07:05 +0000 (07:07 -0400)
src/agent/core/exec.cpp
src/agent/core/session.cpp

index 704e362..b2933dc 100644 (file)
@@ -416,6 +416,7 @@ LONG RunExternal(const TCHAR *pszCmd, const TCHAR *pszArg, StringList *value)
                PROCESS_INFORMATION pi;
                SECURITY_ATTRIBUTES sa;
                HANDLE hOutput;
+      TCHAR szTempFile[MAX_PATH];
 
                // Create temporary file to hold process output
                GetTempPath(MAX_PATH - 1, szBuffer);
index e69a96f..18ffc51 100644 (file)
@@ -319,7 +319,7 @@ void CommSession::readThread()
             }
             else if (msg->getCode() == CMD_SETUP_PROXY_CONNECTION)
             {
-               DWORD rcc = setupProxyConnection(msg);
+               UINT32 rcc = setupProxyConnection(msg);
                // When proxy session established incoming messages will
                // not be processed locally. Acknowledgement message sent
                // by SetupProxyConnection() in case of success.