Changed more malloc to HeapAlloc calls

James Hawkins truiken at gmail.com
Wed Oct 29 19:46:05 CDT 2008


On Wed, Oct 29, 2008 at 7:39 PM, Pete Myers
<peterdanielmyers at googlemail.com> wrote:
> In line with http://wiki.winehq.org/ReplaceMalloc this is a small patch that
> changes all malloc calls to HeapAlloc in the following files:
> ./dlls/iphlpapi/tests/iphlpapi.c
> ./dlls/wnaspi32/winaspi16.c
>
> Changelog:
> * malloc calls in dlls/kernel32/process.c have been change to HeapAlloc
>

Your changelog (right above) doesn't match the patch, and

-      PMIB_IPADDRTABLE buf = (PMIB_IPADDRTABLE)malloc(dwSize);
+      PMIB_IPADDRTABLE buf = (PMIB_IPADDRTABLE)HeapAlloc(
GetProcessHeap(), 0, dwSize);

You've introduced a space after opening parentheses which does not
match the style of the rest of the file.

-- 
James Hawkins



More information about the wine-devel mailing list