[0.4.14][MMSYS] OnHScroll(): Fix wrong '&&' operator (#2855)

CORE-17079 Found by static code analysis
The wrong code once was introduced by 0.4.12-dev-408-g
431f9bf311
We were not aware of any user observable malfunction caused
by it.

fix cherry picked from commit 0.4.15-dev-311-g
03d5ff7f68
This commit is contained in:
Serge Gautherie 2020-05-25 19:57:52 +02:00 committed by Joachim Henze
parent f5ab060c0b
commit 9951f1545d

View file

@ -155,7 +155,7 @@ OnHScroll(
INT id, idx, i, j;
id = (INT)GetWindowLongPtr((HWND)lParam, GWLP_ID);
if (id < 9475 && id > 9503)
if (id < 9475 || id > 9503)
return;
if ((id - 9475) % 4 != 0)