[PATCH 4/5] quartz: Make the vmr-9 implementation work

Maarten Lankhorst m.b.lankhorst at gmail.com
Wed Jul 30 11:35:41 CDT 2008

Hoi Henri,

2008/7/30 H. Verbeet <hverbeet at gmail.com>:
> I just looked the patch over quickly since you mentioned d3d9, but
> here are a few things I noticed:
>> +    hr = IDirect3DSurface9_LockRect(info->lpSurf, &lock, NULL, D3DLOCK_DISCARD);
>> +    assert(hr == S_OK);
> ...
>> +    hr = IDirect3DDevice9_Clear(This->d3d9_dev, 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0);
>> +    if (hr != S_OK)
> I realize D3D_OK and S_OK have the same value, but using
> SUCCEEDED()/FAILED() would probably be more appropriate. Happens in a
> few other places as well.
I was just trying to be pedanctic with the return values, but
SUCCEEDED is probably ok too.

>> +//    info.dwFlags = VMR9AllocFlag_TextureSurface;
> ...
>> +    FIXME("SendMessageW: %08x\n", hr);
> You'll probably want to remove these.
There is a reason I use C++ style comments, mainly because they make
sure those lines never make it in the wine tree, it should just be
removed, when I grepped vmr9.c after patch 5/5  I couldn't find that
line any more, so I probably immediately removed it there, thanks for
catching it.


More information about the wine-devel mailing list