Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gui-agent/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ static ULONG WINAPI WatchForEvents(void)
HANDLE captureErrorEvent = CreateEvent(NULL, FALSE, FALSE, NULL);

// This will not block.
if (!VchanInit(6000))
if (!VchanInit(g_GuiDomainId, 6000))
{
LogError("VchanInit() failed");
return GetLastError();
Expand Down
4 changes: 2 additions & 2 deletions gui-agent/vchan.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BOOL VchanSendMessage(IN const struct msg_hdr *header, IN int headerSize, IN con
return TRUE;
}

BOOL VchanInit(IN int port)
BOOL VchanInit(IN int domain, IN int port)
{
// We give a 5 minute timeout here because xeniface can take some time
// to load the first time after reboot after pvdrivers installation.
Expand All @@ -59,7 +59,7 @@ BOOL VchanInit(IN int port)
// Investigate if this is a problem with windows vchan implementation or something else.
// 64k allows for 4 x 1440p screens.

g_Vchan = VchanInitServer(0, port, 65536, 5 * 60 * 1000);
g_Vchan = VchanInitServer(domain, port, 65536, 5 * 60 * 1000);
if (!g_Vchan)
{
LogError("VchanInitServer failed");
Expand Down
2 changes: 1 addition & 1 deletion gui-agent/vchan.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
extern CRITICAL_SECTION g_VchanCriticalSection;
extern struct libvchan *g_Vchan;

BOOL VchanInit(IN int port);
BOOL VchanInit(IN int domain, IN int port);
BOOL VchanSendMessage(IN const struct msg_hdr* header, IN int headerSize, IN const void* data, IN int dataSize, IN const WCHAR* what);

#define VCHAN_SEND_MSG(header, body, what) (\
Expand Down