Call DDE callback without holding a DDE critical section

Alexandre Julliard julliard at
Wed Feb 1 05:34:42 CST 2006

Dmitry Timoshkov <dmitry at> writes:

> +    count = WDML_CritSect.RecursionCount;
> +    for (i = 0; i < count; i++)
> +        LeaveCriticalSection(&WDML_CritSect);

You don't want to do that sort of thing. You should fix the callers to
not hold the crit section, instead of silently releasing it behind
their backs.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list