malloc() use in rpcrt4/tests/server.c
Francois Gouget
fgouget at free.fr
Wed May 20 04:19:41 CDT 2009
Is there a specific reason for using malloc() in these tests?
Testing that rpcrt4 does not assume HeapAlloc pointers? (but why would
it even care?)
Here are the relevant lines:
in midl_user_allocate():
dlls/rpcrt4/tests/server.c:56: use HeapXxx(): return malloc(n);
in array_tests():
dlls/rpcrt4/tests/server.c:1212: use HeapXxx(): dc = malloc(FIELD_OFFSET(doub_carr_t, a[2]));
dlls/rpcrt4/tests/server.c:1214: use HeapXxx(): dc->a[0] = malloc(FIELD_OFFSET(doub_carr_1_t, a[3]));
dlls/rpcrt4/tests/server.c:1219: use HeapXxx(): dc->a[1] = malloc(FIELD_OFFSET(doub_carr_1_t, a[2]));
--
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
Cahn's Axiom: When all else fails, read the instructions.
More information about the wine-devel
mailing list