Fix xpointer constructor.

This commit is contained in:
Skyth 2024-12-16 18:38:45 +03:00
parent 22983bfb35
commit b9c6b36a4d

View file

@ -105,7 +105,7 @@ struct xpointer
{
}
xpointer(T* ptr) : ptr((uint32_t)ptr)
xpointer(T* ptr) : ptr(reinterpret_cast<size_t>(ptr) - reinterpret_cast<size_t>(MmGetHostAddress(0)))
{
}