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:
Magnus Olsen 2005-03-20 18:20:59 +00:00
parent 124f38a790
commit 0936234d7d

View file

@ -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);