Skip to content

Commit 1b626f0

Browse files
committed
Fixed Clip
1 parent 7153530 commit 1b626f0

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Code/Client/NetImgui_Api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! @version : v1.12.1
99
//! @Details : For integration info : https://github.com/sammyfreg/netImgui/wiki
1010
//=================================================================================================
11-
#define NETIMGUI_VERSION "1.12.1" // Fixed a disconnect thread contention issue on socket
11+
#define NETIMGUI_VERSION "1.12.1" // Fixed disconnect thread contention and clipboard command
1212
#define NETIMGUI_VERSION_NUM 11201
1313

1414

Code/ServerApp/Source/NetImguiServer_Network.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ void Communications_Outgoing(RemoteClient::Client& Client)
168168
if( Client.mPendingSend.IsReady() )
169169
{
170170
NetImgui::Internal::CmdClipboard* pClipboardCmd = Client.TakePendingClipboard();
171-
Client.mPendingSend.pCommand = pClipboardCmd;
172-
Client.mPendingSend.bAutoFree = true;
171+
if( pClipboardCmd ){
172+
pClipboardCmd->ToOffsets();
173+
Client.mPendingSend.pCommand = pClipboardCmd;
174+
Client.mPendingSend.bAutoFree = true;
175+
}
173176
}
174177

175178
if( Client.mPendingSend.IsReady() )

0 commit comments

Comments
 (0)