mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
Memory.c: fix pointer cast in TrackChangeObjSize() call
This commit fixes the "TrackDeleteObj: 0x12345678 is not Object!!" (where 0x12345678 is the actual address) errors with memcheck enabled.
It also fixes the following related warnings:
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
TrackChangeObjSize((DWORD)addr, size, (DWORD)new_addr);
^
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
TrackChangeObjSize((DWORD)addr, size, (DWORD)new_addr);
^
This commit is contained in:
1 parent
9e967ce5ed
commit
e496f33455
1 file changed
+1
-1
@@ -3915,7 +3915,7 @@ void *InternalReAlloc(void *addr, UINT size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef DONT_USE_KERNEL_STATUS
|
#ifndef DONT_USE_KERNEL_STATUS
|
||||||
TrackChangeObjSize((DWORD)addr, size, (DWORD)new_addr);
|
TrackChangeObjSize(POINTER_TO_UINT64(addr), size, POINTER_TO_UINT64(new_addr));
|
||||||
#endif // DONT_USE_KERNEL_STATUS
|
#endif // DONT_USE_KERNEL_STATUS
|
||||||
|
|
||||||
return new_addr;
|
return new_addr;
|
||||||
|
|||||||
Reference in new issue
Block a user