Francois Gouget : shell32/tests: Replace malloc() with HeapAlloc().
Alexandre Julliard
julliard at winehq.org
Wed May 13 10:19:44 CDT 2009
Module: wine
Branch: master
Commit: dde9f3196793440e5aa910e3eeaac2517c6960c7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dde9f3196793440e5aa910e3eeaac2517c6960c7
Author: Francois Gouget <fgouget at free.fr>
Date: Wed May 13 10:32:45 2009 +0200
shell32/tests: Replace malloc() with HeapAlloc().
---
dlls/shell32/tests/shlexec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index 863cea1..3460e1f 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -333,11 +333,11 @@ static void create_test_verb_dde(const char* extension, const char* verb,
}
else
{
- cmd=malloc(strlen(argv0)+10+strlen(child_file)+2+strlen(cmdtail)+1);
+ cmd=HeapAlloc(GetProcessHeap(), 0, strlen(argv0)+10+strlen(child_file)+2+strlen(cmdtail)+1);
sprintf(cmd,"%s shlexec \"%s\" %s", argv0, child_file, cmdtail);
rc=RegSetValueEx(hkey_cmd, NULL, 0, REG_SZ, (LPBYTE)cmd, strlen(cmd)+1);
assert(rc==ERROR_SUCCESS);
- free(cmd);
+ HeapFree(GetProcessHeap(), 0, cmd);
}
if (ddeexec)
More information about the wine-cvs
mailing list