DirectDrawCreateEx() should already return the interface for the

passed refiid.
This commit is contained in:
Marcus Meissner 2000-10-22 23:47:09 +00:00 committed by Alexandre Julliard
parent c4134c741b
commit 5de0fa127c
1 changed files with 11 additions and 3 deletions

View File

@ -341,9 +341,17 @@ HRESULT WINAPI DirectDrawCreate(
HRESULT WINAPI DirectDrawCreateEx(
LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter
) {
FIXME(":semi stub\n");
/* I don't know about what functionality is unique to Ex */
return DirectDrawCreate(lpGUID,(LPDIRECTDRAW*)lplpDD,pUnkOuter);
LPDIRECTDRAW ddraw;
HRESULT hres;
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;
}
/*******************************************************************************