[0.4.13][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 picked from commit 0.4.15-dev-311-g 03d5ff7f68
This commit is contained in:
Joachim Henze 2021-01-17 13:19:49 +01:00
parent f1b31d5790
commit 845804910f

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)