Call DDE callback without holding a DDE critical section

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


Dmitry Timoshkov <dmitry at codeweavers.com> 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 winehq.org



More information about the wine-devel mailing list