mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix DirectDrawSurface::QueryInterface
This commit is contained in:
parent
bbd76a5d9e
commit
7ec7f853d2
@ -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…
x
Reference in New Issue
Block a user