mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[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-g431f9bf311
We were not aware of any user observable malfunction caused by it. fix picked from commit 0.4.15-dev-311-g03d5ff7f68
This commit is contained in:
parent
f1b31d5790
commit
845804910f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue