[PATCH] ieframe: Make sure that history initial state is fully initialized.

Jacek Caban jacek at codeweavers.com
Tue Apr 26 09:40:24 CDT 2022


Hi Dmitry,

On 4/25/22 13:50, Dmitry Timoshkov wrote:
> diff --git a/dlls/ieframe/ieframe.h b/dlls/ieframe/ieframe.h
> index 633906a70ca..1bae1f6781d 100644
> --- a/dlls/ieframe/ieframe.h
> +++ b/dlls/ieframe/ieframe.h
> @@ -340,6 +340,11 @@ static inline void unlock_module(void) {
>       InterlockedDecrement(&module_ref);
>   }
>   
> +static inline void * __WINE_ALLOC_SIZE(2) heap_realloc_zero(void *mem, SIZE_T len)
> +{
> +    return HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, mem, len);
> +}


I think it would be better to use CRT memory allocators in ieframe 
instead of heap functions directly. Once we do that, there is no CRT 
counterpart to zeroing realloc. In this case, it seems to me that we'd 
want to initialize the entry when it becomes accessible, not necessarily 
on allocation.


Thanks,

Jacek




More information about the wine-devel mailing list