Fix exception caused by horizontal mouse wheel (resolves #409 reported by ioan-chera, reported by KanaiZo)

This commit is contained in:
ZZYZX 2020-07-07 13:56:42 +03:00
parent b290af191f
commit 0aaef4980b
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
URL http://devbuilds.drdteam.org/ultimatedoombuilder/
FileName Builder.exe
UpdateName UltimateDoomBuilder-r[REVNUM]-x86.7z
UpdaterName UDB_Updater-x86.7z
UpdateName UltimateDoomBuilder-r[REVNUM]-x64.7z
UpdaterName UDB_Updater-x64.7z

View file

@ -4237,7 +4237,7 @@ namespace CodeImp.DoomBuilder.Windows
break;
case General.WM_MOUSEHWHEEL:
int delta = m.WParam.ToInt32() >> 16;
int delta = unchecked((short)(m.WParam.ToInt64() >> 16));
OnMouseHWheel(delta);
m.Result = new IntPtr(delta);
break;