[PATCH 4/9] ntdll: Add process-local handle tracking

Vincent Povirk madewokherd at gmail.com
Mon Sep 14 20:40:10 CDT 2015


> +void ntdll_object_release(struct ntdll_object *obj)
> +{
> +    int refcount = interlocked_xchg_add(&obj->refcount, -1);
> +    assert(refcount > 0);
> +
> +    if (!refcount)
> +    {

You have an assert followed by a check for a condition that would've
failed the assert.

I'm guessing you meant to check for refcount == 1?



More information about the wine-devel mailing list