[Kernel] Fixed object type

This commit is contained in:
Adrian
2026-07-30 15:52:39 +01:00
committed by Radosław Gliński
parent 2585d3cd69
commit e4f28f6984

View File

@@ -415,7 +415,7 @@ object_ref<XObject> XObject::GetNativeObject(KernelState* kernel_state,
XObject* result = nullptr;
auto header = reinterpret_cast<X_DISPATCH_HEADER*>(native_ptr);
X_DISPATCHER_FLAGS type = X_DISPATCHER_FLAGS::DISPATCHER_UNDEFINED;
X_DISPATCHER_FLAGS type = as_type;
if (as_type == X_DISPATCHER_FLAGS::DISPATCHER_UNDEFINED) {
type = header->type;