| 459 | } |
| 460 | |
| 461 | static void* malloc_hook(const char* fname, int lineno, size_t len) |
| 462 | { |
| 463 | printf(">>>%s\n", __FUNCTION__); |
| 464 | |
| 465 | void* ptr = Real_HeapAlloc(processheap, 0, len); |
| 466 | if (ptr == NULL) |
| 467 | { |
| 468 | char buf[1024]; |
| 469 | int n = WSAGetLastError(); |
| 470 | printf("error: %d, %s\n", n, acl_strerror(n, buf, sizeof(buf))); |
| 471 | } |
| 472 | |
| 473 | return ptr; |
| 474 | } |
| 475 | |
| 476 | static void *calloc_hook(const char* fname, int lineno, size_t n, size_t len) |
| 477 | { |
no test coverage detected
searching dependent graphs…