Commit 8ac2b1dd authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Byteswap

Sun Jan 24 18:09:24 1999  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
parent a1cc053b
Sun Jan 24 18:09:24 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
the MotifInitiatorInfo structure _before_ using it.
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
......
Sun Jan 24 18:09:24 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
the MotifInitiatorInfo structure _before_ using it.
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
......
Sun Jan 24 18:09:24 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
the MotifInitiatorInfo structure _before_ using it.
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
......
Sun Jan 24 18:09:24 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
the MotifInitiatorInfo structure _before_ using it.
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
......
Sun Jan 24 18:09:24 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
the MotifInitiatorInfo structure _before_ using it.
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
......
Sun Jan 24 18:09:24 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
the MotifInitiatorInfo structure _before_ using it.
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
......
Sun Jan 24 18:09:24 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
the MotifInitiatorInfo structure _before_ using it.
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix
......
......@@ -1451,6 +1451,11 @@ motif_read_initiator_info (Window source_window,
motif_read_target_table ();
initiator_info->targets_index =
card16_to_host (initiator_info->targets_index, initiator_info->byte_order);
initiator_info->selection_atom =
card32_to_host (initiator_info->selection_atom, initiator_info->byte_order);
if (initiator_info->targets_index >= motif_n_target_lists)
{
g_warning ("Invalid target index in TOP_LEVEL_ENTER MESSAGE");
......@@ -1458,11 +1463,6 @@ motif_read_initiator_info (Window source_window,
return GDK_FILTER_REMOVE;
}
initiator_info->targets_index =
card16_to_host (initiator_info->targets_index, initiator_info->byte_order);
initiator_info->selection_atom =
card32_to_host (initiator_info->selection_atom, initiator_info->byte_order);
tmp_list = g_list_last (motif_target_lists[initiator_info->targets_index]);
*targets = NULL;
......
......@@ -1451,6 +1451,11 @@ motif_read_initiator_info (Window source_window,
motif_read_target_table ();
initiator_info->targets_index =
card16_to_host (initiator_info->targets_index, initiator_info->byte_order);
initiator_info->selection_atom =
card32_to_host (initiator_info->selection_atom, initiator_info->byte_order);
if (initiator_info->targets_index >= motif_n_target_lists)
{
g_warning ("Invalid target index in TOP_LEVEL_ENTER MESSAGE");
......@@ -1458,11 +1463,6 @@ motif_read_initiator_info (Window source_window,
return GDK_FILTER_REMOVE;
}
initiator_info->targets_index =
card16_to_host (initiator_info->targets_index, initiator_info->byte_order);
initiator_info->selection_atom =
card32_to_host (initiator_info->selection_atom, initiator_info->byte_order);
tmp_list = g_list_last (motif_target_lists[initiator_info->targets_index]);
*targets = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment