Change a malloc() to a HeapAlloc()
Ultra two
ultratwo at gmail.com
Tue Jun 8 14:52:29 CDT 2010
---
dlls/d3dx9_36/shader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c
index 3a7824a..eacb544 100644
--- a/dlls/d3dx9_36/shader.c
+++ b/dlls/d3dx9_36/shader.c
@@ -276,7 +276,7 @@ static char *wpp_lookup_mem(const char *filename,
const char *parent_name,
/* Here we return always ok. We will maybe fail on the next wpp_open_mem */
char *path;
- path = malloc(strlen(filename) + 1);
+ path = HeapAlloc(GetProcessHeap(), 0, strlen(filename) + 1);
if(!path) return NULL;
memcpy(path, filename, strlen(filename) + 1);
return path;
--
1.7.1
More information about the wine-patches
mailing list