crypt32: plug memory leaks

Robert Shearman rob at codeweavers.com
Tue Nov 8 22:21:38 CST 2005


Juan Lang wrote:

>--- Robert Shearman <rob at codeweavers.com> wrote:
>  
>
>>I'm not sure why you need to use these extra macros for memory 
>>allocation. Can't you simply replace the CryptMem* functions during 
>>debugging with a macro?
>>    
>>
>
>Not without an uglier hack, the CryptMem functions are exported.  I can
>just define new versions of crypt_alloc et al with this.
>  
>

You can still #define them to whatever you want in the header file, as 
long as you #undef them before the implementation of the CryptMem* 
functions and redefine them afterwards.

-- 
Rob Shearman




More information about the wine-devel mailing list