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:
parent
2c5175e004
commit
8f4961c59c
@ -311,7 +311,7 @@ static bool wxQueryWMspecSupport(Display *display, Window rootWnd, Atom feature)
|
||||
_NET_SUPPORTING_WM_CHECK, 0, LONG_MAX,
|
||||
False, XA_WINDOW, &type, &format, &nwins,
|
||||
&after, (unsigned char **)&wins);
|
||||
if ( type != XA_WINDOW || nwins <= 0 || wins[0] == None )
|
||||
if ( type != XA_WINDOW || nwins == 0 || wins[0] == None )
|
||||
return false;
|
||||
XFree(wins);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user