[Kernel] Fixed invalid address of a native object pointer

This commit is contained in:
Gliniak
2025-11-09 23:56:09 +01:00
committed by Radosław Gliński
parent 702fbc8adb
commit 68b3490c8b

View File

@@ -333,7 +333,8 @@ uint8_t* XObject::CreateNative(uint32_t size) {
header->object_type_ptr = object_type; header->object_type_ptr = object_type;
} }
return memory()->TranslateVirtual(guest_object_ptr_); return memory()->TranslateVirtual(guest_object_ptr_ +
sizeof(X_DISPATCH_HEADER));
} }
void XObject::SetNativePointer(uint32_t native_ptr, bool uninitialized) { void XObject::SetNativePointer(uint32_t native_ptr, bool uninitialized) {