Skip to content
Snippets Groups Projects
Commit 5de0fa12 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

DirectDrawCreateEx() should already return the interface for the

passed refiid.
parent c4134c74
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/*******************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment