| 44 | } |
| 45 | |
| 46 | LPTSTR SimpleHeap::Malloc(LPCTSTR aBuf, size_t aLength) |
| 47 | { |
| 48 | auto new_buf = strDup(aBuf, aLength); |
| 49 | if (!new_buf) |
| 50 | MemoryError(); |
| 51 | return new_buf; // May be null. |
| 52 | } |
| 53 | |
| 54 | LPTSTR SimpleHeap::Alloc(LPCTSTR aBuf, size_t aLength) |
| 55 | { |
nothing calls this directly
no test coverage detected