[PATCH] ntoskrnl.exe: Correctly initialize two CRITICAL_SECTION_DEBUGs

Jacek Caban jacek at codeweavers.com
Wed May 1 05:59:05 CDT 2019


On 4/30/19 9:58 PM, Michael Stefaniuc wrote:
> On 4/29/19 9:56 PM, Jacek Caban wrote:
>> FWIW, it would be nice if declaring a critical section would be easier
>> and less error prone. Maybe WINE_STATIC_CRITICAL_SECTION() macro?
> There's a reason I wrote the coccinelle script in the first place ;)
>
> Anyway, I have attached an example patch. Once I have a working
> coccinelle script to do the transformation I can send it in.
>
> DECLARE_CRITICAL_SECTION() is IMHO a better name, can be prefixed with
> WINE_ if so desired.


Looks good to me.


Thanks,

Jacek




More information about the wine-devel mailing list