diff --git a/configure.py b/configure.py index 1126bad7..135e6df0 100644 --- a/configure.py +++ b/configure.py @@ -1870,7 +1870,7 @@ config.libs = [ RVLSDKLib("nup", [ Object(NonMatching, "nup/nup.cpp"), Object(NonMatching, "nup/nup_nhttp.cpp"), - Object(NonMatching, "nup/nup_mem.cpp"), + Object(Matching, "nup/nup_mem.cpp"), ] ), RVLSDKLib("scutil", [ diff --git a/libs/RVL_SDK/src/nup/nup_mem.cpp b/libs/RVL_SDK/src/nup/nup_mem.cpp index 184ea549..62e32672 100644 --- a/libs/RVL_SDK/src/nup/nup_mem.cpp +++ b/libs/RVL_SDK/src/nup/nup_mem.cpp @@ -41,8 +41,7 @@ int __nupRegisterAllocator(MEMAllocator* allocator) { } else { if (((MEMHeapHandle)allocator->heap)->magic != 0x45585048) { result = -5011; - } - if (((MEMHeapHandle)allocator->heap)->magic == 0x45585048) { + } else { __mem = allocator; } }