Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
311 B

5 years ago
  1. #include <windows.h>
  2. #define malloc(size) LocalAlloc(LMEM_FIXED, (UINT)(size))
  3. #define calloc(nobj, size) LocalAlloc(LMEM_FIXED|LMEM_ZEROINIT, (UINT)((nobj) * (size)))
  4. #define realloc(p, size) LocalReAlloc((HLOCAL)(p), (UINT)(size), LMEM_MOVEABLE)
  5. #define free(p) LocalFree((HLOCAL)(p))