[gnome-remote-desktop] clipboard-rdp: Use correct macro to retrieve the mime type
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] clipboard-rdp: Use correct macro to retrieve the mime type
- Date: Thu, 18 Feb 2021 16:50:57 +0000 (UTC)
commit 48155e615b4240c98b13aef673d783613f412497
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Sun Feb 7 16:59:09 2021 +0100
clipboard-rdp: Use correct macro to retrieve the mime type
While implementing the RDP clipboard, GPOINTER_TO_INT was accidentally
used instead of GPOINTER_TO_UINT to retrieve the mime type.
Fix this by replacing the GPOINTER_TO_INT macro with the
GPOINTER_TO_UINT macro.
src/grd-clipboard-rdp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/grd-clipboard-rdp.c b/src/grd-clipboard-rdp.c
index be46ae0..17c0768 100644
--- a/src/grd-clipboard-rdp.c
+++ b/src/grd-clipboard-rdp.c
@@ -127,7 +127,7 @@ update_allowed_server_formats (GrdClipboardRdp *clipboard_rdp,
{
for (l = clipboard_rdp->pending_server_formats; l; l = l->next)
{
- if (GPOINTER_TO_INT (l->data) == GRD_MIME_TYPE_TEXT_URILIST)
+ if (GPOINTER_TO_UINT (l->data) == GRD_MIME_TYPE_TEXT_URILIST)
clipboard_rdp->server_file_contents_requests_allowed = TRUE;
g_hash_table_add (clipboard_rdp->allowed_server_formats, l->data);
@@ -258,7 +258,7 @@ grd_clipboard_rdp_update_client_mime_type_list (GrdClipboard *clipboard,
cliprdr_formats = g_malloc0 (n_formats * sizeof (CLIPRDR_FORMAT));
for (i = 0, l = mime_type_list; i < n_formats; ++i, l = l->next)
{
- mime_type = GPOINTER_TO_INT (l->data);
+ mime_type = GPOINTER_TO_UINT (l->data);
switch (mime_type)
{
case GRD_MIME_TYPE_TEXT_PLAIN:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]