Michael Stefaniuc : winefile: Replace malloc with HeapAlloc.
Martin Fuchs
fuchs.martin at gmail.com
Thu Jul 26 01:40:47 CDT 2007
Hello,
may I ask why you are replacing the simple malloc/free calls
by the more complicated HeapAlloc API? This just makes
the source longer and less readable. There is no point in avoiding
C library usage in Winefile. It is just a unix application using
Wine libraries - not a Wine system library.
Regards,
Martin
On 24.07.2007 07:06:08 Alexandre Julliard wrote:
> Module: wine
> Branch: master
> Commit: 11bb71d3d6a34d301291b2d15c849a1381bd7789
> URL:
> http://source.winehq.org/git/wine.git/?a=commit;h=11bb71d3d6a34d301291b2d15c8
> 49a1381bd7789
> Author: Michael Stefaniuc <mstefani at redhat.de>
> Date: Mon Jul 23 22:25:20 2007 +0200
> winefile: Replace malloc with HeapAlloc.
> - Entry* entry = (Entry*) malloc(sizeof(Entry));
> + Entry* entry = HeapAlloc(GetProcessHeap(), 0, sizeof(Entry));
> - free(entry);
> + HeapFree(GetProcessHeap(), 0, entry);
> }
--
Martin Fuchs
fuchs.martin at gmail.com
More information about the wine-devel
mailing list