summaryrefslogtreecommitdiff
path: root/Kernel/Devices/HID/VMWareMouseDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Devices/HID/VMWareMouseDevice.cpp')
-rw-r--r--Kernel/Devices/HID/VMWareMouseDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/HID/VMWareMouseDevice.cpp b/Kernel/Devices/HID/VMWareMouseDevice.cpp
index 32f498e492..2c54a285cb 100644
--- a/Kernel/Devices/HID/VMWareMouseDevice.cpp
+++ b/Kernel/Devices/HID/VMWareMouseDevice.cpp
@@ -15,7 +15,7 @@ UNMAP_AFTER_INIT RefPtr<VMWareMouseDevice> VMWareMouseDevice::try_to_initialize(
return {};
if (!VMWareBackdoor::the()->vmmouse_is_absolute())
return {};
- auto device = adopt(*new VMWareMouseDevice(ps2_controller));
+ auto device = adopt_ref(*new VMWareMouseDevice(ps2_controller));
if (device->initialize())
return device;
return {};