Skip to content
Snippets Groups Projects
Commit f3817229 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Increment offset in the loop when reading _NET_WORKAREA

Previously, if there was more than one work area, this would be
an infinite loop, re-reading the first workarea repeatedly.

Reported by Ragnarok (thanks!)
parent 268893cc
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4408 passed
......@@ -243,6 +243,8 @@ x11_get_maxsize(int *w, int *h)
break;
if (atr != XA_CARDINAL)
break;
if (nir > 0)
offset += nir;
ret = (long *)prop;
if (nir >= 3) {
if (ret[2] > maxw)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment