Andrew Talbot : gphoto2.ds: Replace malloc() with HeapAlloc().
Alexandre Julliard
julliard at winehq.org
Mon Feb 9 10:29:54 CST 2009
Module: wine
Branch: master
Commit: 7754f2e78b9e3ebadf6530ff91e5959b8a0c22a2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7754f2e78b9e3ebadf6530ff91e5959b8a0c22a2
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Feb 7 19:45:32 2009 +0000
gphoto2.ds: Replace malloc() with HeapAlloc().
---
dlls/gphoto2.ds/gphoto2_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gphoto2.ds/gphoto2_main.c b/dlls/gphoto2.ds/gphoto2_main.c
index 311abb8..bb2c31c 100644
--- a/dlls/gphoto2.ds/gphoto2_main.c
+++ b/dlls/gphoto2.ds/gphoto2_main.c
@@ -63,7 +63,7 @@ load_filesystem(const char *folder) {
ret = gp_list_get_name (list, i, &name);
if (ret < GP_OK)
continue;
- gpfile = malloc(sizeof(struct gphoto2_file));
+ gpfile = HeapAlloc(GetProcessHeap(), 0, sizeof(struct gphoto2_file));
if (!gpfile)
continue;
TRACE("adding %s/%s\n", folder, name);
@@ -93,7 +93,7 @@ load_filesystem(const char *folder) {
if (ret < GP_OK)
continue;
TRACE("recursing into %s\n", name);
- newfolder = malloc(strlen(folder)+1+strlen(name)+1);
+ newfolder = HeapAlloc(GetProcessHeap(), 0, strlen(folder)+1+strlen(name)+1);
if (!strcmp(folder,"/"))
sprintf (newfolder, "/%s", name);
else
More information about the wine-cvs
mailing list