[PATCH v3 0/9] MR272: d3dx10: Add D3DX10CreateThreadPump implementation.
Matteo Bruni (@Mystral)
wine at gitlab.winehq.org
Tue Jun 21 03:02:01 CDT 2022
Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/tests/d3dx10.c:
> +
> +static struct data_object* data_object_from_ID3DX10DataLoader(ID3DX10DataLoader *iface)
> +{
> + return CONTAINING_RECORD(iface, struct data_object, ID3DX10DataLoader_iface);
> +}
> +
> +static LONG data_loader_load_count;
> +static WINAPI HRESULT data_loader_Load(ID3DX10DataLoader *iface)
> +{
> + struct data_object *data_object = data_object_from_ID3DX10DataLoader(iface);
> + DWORD ret;
> +
> + ok(InterlockedDecrement(&data_loader_load_count) >= 0, "unexpected call\n");
> +
> + if (io_tid)
> + io_tid = GetCurrentThreadId();
Was the condition meant to be reversed?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/272#note_2445
More information about the wine-devel
mailing list