Created
January 2, 2017 00:12
-
-
Save MrSapps/709547a8bc4ea125fec61008ab7bae53 to your computer and use it in GitHub Desktop.
malloc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned int __stdcall MallocExtra_4059F0(int requestSize, _DWORD *pAllocated) | |
{ | |
void *pAllocatedWithExtra; // eax@1 | |
pAllocatedWithExtra = malloc(requestSize + 65536); | |
*pAllocated = pAllocatedWithExtra; | |
if ( !pAllocatedWithExtra ) | |
TraceLog_450530(1029, "Memory.cpp", 76); | |
return (*pAllocated + 65535) & 0xFFFF0000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment