mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
Fixing CreateDirectDraw crash
svn path=/trunk/; revision=26873
This commit is contained in:
parent
e9753c14a8
commit
f1a1a96940
|
@ -38,18 +38,9 @@ DirectDrawCreate (LPGUID lpGUID,
|
|||
remove this when UML digram are in place
|
||||
this api is finish and is working as it should
|
||||
*/
|
||||
|
||||
DX_WINDBG_trace();
|
||||
|
||||
|
||||
/* check see if pUnkOuter is null or not */
|
||||
if (pUnkOuter)
|
||||
{
|
||||
/* we are using same error code as MS*/
|
||||
return CLASS_E_NOAGGREGATION;
|
||||
}
|
||||
|
||||
/* Create our DirectDraw interface */
|
||||
return Create_DirectDraw (lpGUID, lplpDD, &IID_IDirectDraw7, FALSE);
|
||||
return DirectDrawCreateEx(lpGUID, (LPVOID*)lplpDD, &IID_IDirectDraw2, pUnkOuter);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue