More very serious issue pointed out by gcc

This commit is contained in:
Mark Jansen 2020-02-23 22:41:13 +01:00
parent 1d3fb3e370
commit 60e89359c1
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -1868,7 +1868,7 @@ public:
if (current < 0)
current = (_countof(Controls) - 1);
else if (current >= _countof(Controls))
else if ((UINT)current >= _countof(Controls))
current = 0;
::SetFocus(Controls[current]);