DirectDrawCreateEx() should already return the interface for the
passed refiid.
This commit is contained in:
parent
c4134c741b
commit
5de0fa127c
|
@ -341,9 +341,17 @@ HRESULT WINAPI DirectDrawCreate(
|
||||||
HRESULT WINAPI DirectDrawCreateEx(
|
HRESULT WINAPI DirectDrawCreateEx(
|
||||||
LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter
|
LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter
|
||||||
) {
|
) {
|
||||||
FIXME(":semi stub\n");
|
LPDIRECTDRAW ddraw;
|
||||||
/* I don't know about what functionality is unique to Ex */
|
HRESULT hres;
|
||||||
return DirectDrawCreate(lpGUID,(LPDIRECTDRAW*)lplpDD,pUnkOuter);
|
|
||||||
|
FIXME("(%p,%p,%s,%p), might be wrong.\n",lpGUID,lplpDD,debugstr_guid(iid),pUnkOuter);
|
||||||
|
|
||||||
|
hres=DirectDrawCreate(lpGUID,(LPDIRECTDRAW*)&ddraw,pUnkOuter);
|
||||||
|
if (!hres) {
|
||||||
|
hres=IDirectDraw_QueryInterface(ddraw,iid,lplpDD);
|
||||||
|
IDirectDraw_Release(ddraw);
|
||||||
|
}
|
||||||
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue