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:
Vadim Zeitlin 2015-02-04 13:18:59 +00:00
parent 2c5175e004
commit 8f4961c59c

View File

@ -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);