Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rdp/rdp_cliprdr.c')
-rw-r--r--plugins/rdp/rdp_cliprdr.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/rdp/rdp_cliprdr.c b/plugins/rdp/rdp_cliprdr.c
index 668d9035a..d42aa356c 100644
--- a/plugins/rdp/rdp_cliprdr.c
+++ b/plugins/rdp/rdp_cliprdr.c
@@ -844,25 +844,24 @@ void remmina_rdp_cliprdr_get_clipboard_data(RemminaProtocolWidget *gp, RemminaPl
case CB_FORMAT_HTML:
{
size = strlen((char *)inbuf);
- outbuf = lf2crlf(inbuf, &size);
+ outbuf = lf2crlf(inbuf, (int *) &size);
break;
}
case CF_UNICODETEXT:
{
size = strlen((const char *)inbuf);
- inbuf = lf2crlf(inbuf, &size);
- {
+ inbuf = lf2crlf(inbuf, (int *) &size);
#if FREERDP_VERSION_MAJOR >= 3
- size_t len = 0;
- outbuf_wchar = ConvertUtf8NToWCharAlloc((const char *)inbuf, (size_t)size, &len);
- size = (len + 1) * sizeof(WCHAR);
+ size_t len = 0;
+ outbuf_wchar = ConvertUtf8NToWCharAlloc((const char *)inbuf, (size_t)size, &len);
+ size = (len + 1) * sizeof(WCHAR);
#else
- const int rc = (ConvertToUnicode(CP_UTF8, 0, (CHAR *)inbuf, -1, (WCHAR **)&outbuf, 0)) * sizeof(WCHAR);
- size = 0;
- if (rc >= 0)
+ const int rc = (ConvertToUnicode(CP_UTF8, 0, (CHAR *)inbuf, -1, (WCHAR **)&outbuf, 0)) * sizeof(WCHAR);
+ size = 0;
+ if (rc >= 0) {
size = (size_t)rc;
-#endif
}
+#endif
g_free(inbuf);
break;
}