Author: greatlrd
Date: Wed May 23 23:48:54 2007
New Revision: 26873
URL:
http://svn.reactos.org/svn/reactos?rev=26873&view=rev
Log:
Fixing CreateDirectDraw crash
Modified:
trunk/reactos/dll/directx/ddraw/main.c
Modified: trunk/reactos/dll/directx/ddraw/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main.c?r…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/main.c (original)
+++ trunk/reactos/dll/directx/ddraw/main.c Wed May 23 23:48:54 2007
@@ -33,23 +33,14 @@
DirectDrawCreate (LPGUID lpGUID,
LPDIRECTDRAW* lplpDD,
LPUNKNOWN pUnkOuter)
-{
+{
/*
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);
}
/*