mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
LPUNKNOWN pUnkOuter did check it was NULL and return
forget it should be not equal with NULL it return thx to mifritscher did the first test to find my mistake svn path=/trunk/; revision=14228
This commit is contained in:
parent
124f38a790
commit
0936234d7d
1 changed files with 2 additions and 2 deletions
|
@ -15,14 +15,14 @@
|
|||
|
||||
HRESULT WINAPI DirectDrawCreate(LPGUID lpGUID, LPDIRECTDRAW* lplpDD, LPUNKNOWN pUnkOuter)
|
||||
{
|
||||
if (pUnkOuter==NULL) return DDERR_INVALIDPARAMS;
|
||||
if (pUnkOuter!=NULL) return DDERR_INVALIDPARAMS;
|
||||
return DDRAW_Create(lpGUID, (LPVOID*) lplpDD, pUnkOuter, &IID_IDirectDraw, FALSE);
|
||||
}
|
||||
|
||||
|
||||
HRESULT WINAPI DirectDrawCreateEx(LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter)
|
||||
{
|
||||
if (pUnkOuter==NULL) return DDERR_INVALIDPARAMS;
|
||||
if (pUnkOuter!=NULL) return DDERR_INVALIDPARAMS;
|
||||
if (!IsEqualGUID(iid, &IID_IDirectDraw7)) return DDERR_INVALIDPARAMS;
|
||||
|
||||
return DDRAW_Create(lpGUID, lplpDD, pUnkOuter, iid, TRUE);
|
||||
|
|
Loading…
Reference in a new issue