How do I test janitorial task ReplaceMalloc for console.c?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Ron
Level 1
Level 1
Posts: 7
Joined: Wed Mar 19, 2008 2:24 pm

How do I test janitorial task ReplaceMalloc for console.c?

Post by Ron »

How do I test janitorial task ReplaceMalloc for console.c?

I finished replacing the Malloc() functions with HeapAlloc() functions and the corresponding Free() functions with HeapFree() functions, but how do I test if it works?

Here is my modified console.c code from wine version 0.9.60

http://www.pastebin.com/f5307c42f
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How do I test janitorial task ReplaceMalloc for console.

Post by vitamin »

Ron wrote:How do I test janitorial task ReplaceMalloc for console.c?

I finished replacing the Malloc() functions with HeapAlloc() functions and the corresponding Free() functions with HeapFree() functions, but how do I test if it works?

Here is my modified console.c code from wine version 0.9.60

http://www.pastebin.com/f5307c42f
You compile it and use it. Also please consider using wine-devel mailing list. Also here is more info about how to send patches to Wine: http://www.winehq.org/site/sending_patches

The forum is mostly for users you won't get much help with development related questions/problems. And of course it doesn't help to post something to pastebin that just disappears.
Locked