17 Feb
2014
17 Feb
'14
6:27 a.m.
On Mon, Feb 17, 2014 at 9:21 AM, Martin Storsjö <martin(a)martin.st> wrote:
+ if (desc) + HeapFree(GetProcessHeap(), 0, desc);
There's no point in checking for NULL before HeapFree().
MSDN says "If this pointer is NULL, the behavior is undefined" about the lpMem parameter to HeapFree.
Actually it does not matter what MSDN says in this case, the wine source code is very clear: http://source.winehq.org/source/dlls/ntdll/heap.c#L1740
// Martin
Bruno