Skip to content

Commit

Permalink
Rename MonitorLayoutSize to monitor_layout_size.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexarian committed Jun 3, 2021
1 parent 5a49ca3 commit 4f325fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xrdp/xrdp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ dynamic_monitor_data(intptr_t id, int chan_id, char *data, int bytes)
int msg_length;
struct xrdp_process *pro;
struct xrdp_wm *wm;
int MonitorLayoutSize;
int monitor_layout_size;

LOG_DEVEL(LOG_LEVEL_TRACE, "dynamic_monitor_data:");
pro = (struct xrdp_process *) id;
Expand All @@ -1176,11 +1176,11 @@ dynamic_monitor_data(intptr_t id, int chan_id, char *data, int bytes)
{
return 0;
}
in_uint32_le(s, MonitorLayoutSize);
if (MonitorLayoutSize != 40)
in_uint32_le(s, monitor_layout_size);
if (monitor_layout_size != 40)
{
/* 2.2.2.2 DISPLAYCONTROL_MONITOR_LAYOUT_PDU */
LOG(LOG_LEVEL_ERROR, "\tdynamic_monitor_data: MonitorLayoutSize is %d. Per spec it must be 40.", MonitorLayoutSize);
LOG(LOG_LEVEL_ERROR, "\tdynamic_monitor_data: monitor_layout_size is %d. Per spec it must be 40.", monitor_layout_size);
return 1;
}

Expand Down

0 comments on commit 4f325fa

Please sign in to comment.