Refactored socket warning fixes to be more readable.
This commit is contained in:
parent
e50a8e09ee
commit
57de0aebb5
@ -127,7 +127,7 @@ static BOOL capture_plugin_session_end(proxyData* pdata)
|
||||
wStream* s;
|
||||
|
||||
socket = capture_plugin_get_socket(pdata);
|
||||
if ((INT64)socket == -1LL)
|
||||
if (socket == INVALID_SOCKET)
|
||||
return FALSE;
|
||||
|
||||
s = capture_plugin_packet_new(SESSION_END_PDU_BASE_SIZE, MESSAGE_TYPE_SESSION_END);
|
||||
@ -191,7 +191,7 @@ static BOOL capture_plugin_client_end_paint(proxyData* pdata)
|
||||
return TRUE;
|
||||
|
||||
socket = capture_plugin_get_socket(pdata);
|
||||
if ((INT64)socket == -1LL)
|
||||
if (socket == INVALID_SOCKET)
|
||||
return FALSE;
|
||||
|
||||
if (!capture_plugin_send_frame(pc, socket, gdi->primary_buffer))
|
||||
@ -211,7 +211,7 @@ static BOOL capture_plugin_client_post_connect(proxyData* pdata)
|
||||
wStream* s;
|
||||
|
||||
socket = capture_plugin_init_socket();
|
||||
if ((INT64)socket == -1LL)
|
||||
if (socket == INVALID_SOCKET)
|
||||
{
|
||||
WLog_ERR(TAG, "failed to establish a connection");
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user