fix DirectDrawSurface::QueryInterface
This commit is contained in:
parent
bbd76a5d9e
commit
7ec7f853d2
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,13 @@ HRESULT __stdcall ddraw_surface_QueryInterface(IDirectDrawSurfaceImpl *This, REF
|
|||
{
|
||||
printf("DirectDrawSurface::QueryInterface(This=%p, riid=%08X, obj=%p) ???\n", This, (unsigned int)riid, obj);
|
||||
|
||||
if (riid && !IsEqualGUID(&IID_IDirectDrawSurface, riid))
|
||||
{
|
||||
printf(" IID_IDirectDrawSurfaceX\n");
|
||||
|
||||
IDirectDrawSurface_AddRef(This);
|
||||
}
|
||||
|
||||
*obj = This;
|
||||
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in a new issue