mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-05-22 18:02:08 +00:00
Fix xpointer constructor for null pointers.
This commit is contained in:
parent
73b75e197a
commit
0fc545a6e2
@ -105,7 +105,7 @@ struct xpointer
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
xpointer(T* ptr) : ptr(reinterpret_cast<size_t>(ptr) - reinterpret_cast<size_t>(MmGetHostAddress(0)))
|
xpointer(T* p) : ptr(p != nullptr ? (reinterpret_cast<size_t>(p) - reinterpret_cast<size_t>(MmGetHostAddress(0))) : 0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user