mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
PR fixes
This commit is contained in:
parent
912bff27f0
commit
cb235debf5
@ -28,6 +28,9 @@
|
|||||||
|
|
||||||
#define RDP2TCP_CHAN_NAME "rdp2tcp"
|
#define RDP2TCP_CHAN_NAME "rdp2tcp"
|
||||||
|
|
||||||
|
#include <freerdp/log.h>
|
||||||
|
#define TAG CLIENT_TAG(RDP2TCP_CHAN_NAME)
|
||||||
|
|
||||||
static int const debug = 0;
|
static int const debug = 0;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -59,25 +62,25 @@ static int init_external_addin(Plugin* plugin)
|
|||||||
// Create pipes
|
// Create pipes
|
||||||
if (!CreatePipe(&plugin->hStdOutputRead, &siStartInfo.hStdOutput, &saAttr, 0))
|
if (!CreatePipe(&plugin->hStdOutputRead, &siStartInfo.hStdOutput, &saAttr, 0))
|
||||||
{
|
{
|
||||||
perror("stdout CreatePipe");
|
WLog_ERR(TAG, "stdout CreatePipe");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!SetHandleInformation(plugin->hStdOutputRead, HANDLE_FLAG_INHERIT, 0))
|
if (!SetHandleInformation(plugin->hStdOutputRead, HANDLE_FLAG_INHERIT, 0))
|
||||||
{
|
{
|
||||||
perror("stdout SetHandleInformation");
|
WLog_ERR(TAG, "stdout SetHandleInformation");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CreatePipe(&siStartInfo.hStdInput, &plugin->hStdInputWrite, &saAttr, 0))
|
if (!CreatePipe(&siStartInfo.hStdInput, &plugin->hStdInputWrite, &saAttr, 0))
|
||||||
{
|
{
|
||||||
perror("stdin CreatePipe");
|
WLog_ERR(TAG, "stdin CreatePipe");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!SetHandleInformation(plugin->hStdInputWrite, HANDLE_FLAG_INHERIT, 0))
|
if (!SetHandleInformation(plugin->hStdInputWrite, HANDLE_FLAG_INHERIT, 0))
|
||||||
{
|
{
|
||||||
perror("stdin SetHandleInformation");
|
WLog_ERR(TAG, "stdin SetHandleInformation");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +97,7 @@ static int init_external_addin(Plugin* plugin)
|
|||||||
&procInfo // receives PROCESS_INFORMATION
|
&procInfo // receives PROCESS_INFORMATION
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
perror("fork for addin");
|
WLog_ERR(TAG, "fork for addin");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,7 +223,6 @@ static void VCAPITYPE VirtualChannelOpenEventEx(LPVOID lpUserParam, DWORD openHa
|
|||||||
switch (event)
|
switch (event)
|
||||||
{
|
{
|
||||||
case CHANNEL_EVENT_DATA_RECEIVED:
|
case CHANNEL_EVENT_DATA_RECEIVED:
|
||||||
;
|
|
||||||
dataReceived(plugin, pData, dataLength, totalLength, dataFlags);
|
dataReceived(plugin, pData, dataLength, totalLength, dataFlags);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user