[d3d9] allow NULL ppQuery to be passed to CreateQuery

Alexandre Julliard julliard at winehq.org
Mon Nov 7 13:37:55 CST 2005


Oliver Stieber <oliver_stieber at yahoo.co.uk> writes:

> @@ -142,9 +142,10 @@
>      FIXME("(%p) call to IWineD3DDevice_CreateQuery failed\n", This);
>      HeapFree(GetProcessHeap(), 0, object);
>      *ppQuery = NULL;
> -  } else {
> +  } else if (ppQuery != NULL) {
>      *ppQuery = (LPDIRECT3DQUERY9) object;
>    }

That doesn't look right. Who's going to free the object if you don't
return it?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list