Don't check if an unsigned variable is less than 0.
This doesn't risk ever being true. Closes #16831. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -311,7 +311,7 @@ static bool wxQueryWMspecSupport(Display *display, Window rootWnd, Atom feature)
|
|||||||
_NET_SUPPORTING_WM_CHECK, 0, LONG_MAX,
|
_NET_SUPPORTING_WM_CHECK, 0, LONG_MAX,
|
||||||
False, XA_WINDOW, &type, &format, &nwins,
|
False, XA_WINDOW, &type, &format, &nwins,
|
||||||
&after, (unsigned char **)&wins);
|
&after, (unsigned char **)&wins);
|
||||||
if ( type != XA_WINDOW || nwins <= 0 || wins[0] == None )
|
if ( type != XA_WINDOW || nwins == 0 || wins[0] == None )
|
||||||
return false;
|
return false;
|
||||||
XFree(wins);
|
XFree(wins);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user