Skip to content

Commit a8dd57a

Browse files
committed
Merge branch 'master' of https://github.com/FreeRDP/FreeRDP
2 parents ec9d30b + baca062 commit a8dd57a

File tree

133 files changed

+8092
-6256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+8092
-6256
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,14 @@ set(FREERDP_ADDIN_PATH "${FREERDP_PLUGIN_PATH}")
10191019
# Path to put extensions
10201020
set(FREERDP_EXTENSION_PATH "${CMAKE_INSTALL_FULL_LIBDIR}/freerdp${FREERDP_VERSION_MAJOR}/extensions")
10211021

1022+
# Proxy plugins path
1023+
if(NOT DEFINED PROXY_PLUGINDIR)
1024+
message("using default plugins location")
1025+
set(FREERDP_PROXY_PLUGINDIR "${CMAKE_BINARY_DIR}/server/proxy/plugins")
1026+
else()
1027+
set(FREERDP_PROXY_PLUGINDIR "${PROXY_PLUGINDIR}")
1028+
endif()
1029+
10221030
# Include directories
10231031
include_directories(${CMAKE_CURRENT_BINARY_DIR})
10241032
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)

channels/audin/client/audin_main.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,9 +1027,10 @@ UINT DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints)
10271027
{
10281028
if ((error = audin_load_device_plugin(audin, audin->subsystem, args)))
10291029
{
1030-
WLog_Print(audin->log, WLOG_ERROR,
1031-
"audin_load_device_plugin %s failed with error %" PRIu32 "!",
1032-
audin->subsystem, error);
1030+
WLog_Print(
1031+
audin->log, WLOG_ERROR,
1032+
"Unable to load microphone redirection subsystem %s because of error %" PRIu32 "",
1033+
audin->subsystem, error);
10331034
goto out;
10341035
}
10351036
}
@@ -1064,7 +1065,7 @@ UINT DVCPluginEntry(IDRDYNVC_ENTRY_POINTS* pEntryPoints)
10641065
{
10651066
/* If we have no audin device do not register plugin but still return OK or the client will
10661067
* just disconnect due to a missing microphone. */
1067-
WLog_Print(audin->log, WLOG_ERROR, "no sound device.");
1068+
WLog_Print(audin->log, WLOG_ERROR, "No microphone device could be found.");
10681069
error = CHANNEL_RC_OK;
10691070
goto out;
10701071
}

channels/audin/client/winmm/audin_winmm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,10 @@ UINT freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEn
465465
UINT error;
466466

467467
if (waveInGetNumDevs() == 0)
468+
{
469+
WLog_Print(WLog_Get(TAG), WLOG_ERROR, "No microphone available!");
468470
return ERROR_DEVICE_NOT_AVAILABLE;
471+
}
469472

470473
winmm = (AudinWinmmDevice*)calloc(1, sizeof(AudinWinmmDevice));
471474

channels/disp/server/disp_main.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static UINT disp_server_handle_messages(DispServerContext* context)
275275
WTSFreeMemory(buffer);
276276
}
277277

278-
/* Consume channel event only after the gfx dynamic channel is ready */
278+
/* Consume channel event only after the disp dynamic channel is ready */
279279
Stream_SetPosition(s, 0);
280280

281281
if (!WTSVirtualChannelRead(priv->disp_channel, 0, NULL, 0, &BytesReturned))
@@ -384,6 +384,7 @@ static UINT disp_server_open(DispServerContext* context)
384384
}
385385

386386
priv->SessionId = (DWORD)*pSessionId;
387+
WTSFreeMemory(pSessionId);
387388
priv->disp_channel = (HANDLE)WTSVirtualChannelOpenEx(priv->SessionId, DISP_DVC_CHANNEL_NAME,
388389
WTS_CHANNEL_OPTION_DYNAMIC);
389390

@@ -513,6 +514,12 @@ static UINT disp_server_close(DispServerContext* context)
513514
priv->stopEvent = NULL;
514515
}
515516

517+
if (priv->disp_channel)
518+
{
519+
WTSVirtualChannelClose(priv->disp_channel);
520+
priv->disp_channel = NULL;
521+
}
522+
516523
return error;
517524
}
518525

channels/drdynvc/client/drdynvc_main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,10 +1319,8 @@ static DWORD WINAPI drdynvc_virtual_channel_client_thread(LPVOID arg)
13191319

13201320
if ((error = drdynvc_order_recv(drdynvc, data)))
13211321
{
1322-
Stream_Free(data, TRUE);
1323-
WLog_Print(drdynvc->log, WLOG_ERROR,
1322+
WLog_Print(drdynvc->log, WLOG_WARN,
13241323
"drdynvc_order_recv failed with error %" PRIu32 "!", error);
1325-
break;
13261324
}
13271325

13281326
Stream_Free(data, TRUE);

0 commit comments

Comments
 (0)