diff --git a/Kernel/Devices/VMWareBackdoor.cpp b/Kernel/Devices/VMWareBackdoor.cpp index d69cc31d9b..87311ceb26 100644 --- a/Kernel/Devices/VMWareBackdoor.cpp +++ b/Kernel/Devices/VMWareBackdoor.cpp @@ -231,7 +231,7 @@ Optional VMWareBackdoor::receive_mouse_packet() int buttons = (command.ax & 0xFFFF); int x = (command.bx); int y = (command.cx); - int z = (command.dx); + int z = (i8)(command.dx); // signed 8 bit value only! if constexpr (PS2MOUSE_DEBUG) { dbgln("Absolute Mouse: Buttons {:x}", buttons);