fix a simple bug that I did intrudes with my last commit Modified: trunk/reactos/lib/ddraw/main.c _____
Modified: trunk/reactos/lib/ddraw/main.c --- trunk/reactos/lib/ddraw/main.c 2005-08-08 16:21:35 UTC (rev 17214) +++ trunk/reactos/lib/ddraw/main.c 2005-08-08 16:36:39 UTC (rev 17215) @@ -30,32 +30,32 @@
HRESULT WINAPI DirectDrawCreate (LPGUID lpGUID, LPDIRECTDRAW* lplpDD, LPUNKNOWN pUnkOuter) { - /* check see if pUnkOuter is null or not */ - if (!pUnkOuter) + if (pUnkOuter) { /* we do not use same error code as MS, ms use 0x8004110 */ return DDERR_INVALIDPARAMS; } + return Create_DirectDraw (lpGUID, lplpDD, pUnkOuter, FALSE); }
HRESULT WINAPI DirectDrawCreateEx(LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter) -{ +{ /* check see if pUnkOuter is null or not */ - if (!pUnkOuter) + if (pUnkOuter) { /* we do not use same error code as MS, ms use 0x8004110 */ return DDERR_INVALIDPARAMS; } - + /* Is it a DirectDraw 7 Request or not */ if (!IsEqualGUID(iid, &IID_IDirectDraw7)) { return DDERR_INVALIDPARAMS; } - + return Create_DirectDraw (lpGUID, (LPDIRECTDRAW*)lplpDD, pUnkOuter, TRUE); }