[PATCH 1/3] advpack/tests: Rename the wrappers around HeapAlloc() &Co to use the new standard naming.

Michael Stefaniuc mstefani at redhat.de
Wed Nov 28 15:39:53 CST 2007


Alexandre,

i'm unsure about this patch series. Yes this are simple wrappers around
HeapAlloc() that are the same as the "standard" wrappers used in Wine.
But they are used only as callbacks aka different usage.

bye
	michael
---
 dlls/advpack/tests/files.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/advpack/tests/files.c b/dlls/advpack/tests/files.c
index 71c1741..6bf4fa8 100644
--- a/dlls/advpack/tests/files.c
+++ b/dlls/advpack/tests/files.c
@@ -213,12 +213,12 @@ static void test_AddDelBackupEntry(void)
 
 /* the FCI callbacks */
 
-static void *mem_alloc(ULONG cb)
+static void *heap_alloc(ULONG cb)
 {
     return HeapAlloc(GetProcessHeap(), 0, cb);
 }
 
-static void mem_free(void *memory)
+static void heap_free(void *memory)
 {
     HeapFree(GetProcessHeap(), 0, memory);
 }
@@ -398,7 +398,7 @@ static void create_cab_file(void)
 
     set_cab_parameters(&cabParams);
 
-    hfci = FCICreate(&erf, file_placed, mem_alloc, mem_free, fci_open,
+    hfci = FCICreate(&erf, file_placed, heap_alloc, heap_free, fci_open,
                       fci_read, fci_write, fci_close, fci_seek, fci_delete,
                       get_temp_file, &cabParams, NULL);
 
-- 
1.5.3.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071128/83ce70d6/attachment.pgp 


More information about the wine-patches mailing list