Author: khornicek
Date: Fri Jan 30 09:14:10 2009
New Revision: 39212
URL:
http://svn.reactos.org/svn/reactos?rev=39212&view=rev
Log:
- allocate memory for HEL callbacks
- should fix dosbox and other apps in Download
Modified:
branches/ros-branch-0_3_8/reactos/dll/directx/ddraw/startup.c
Modified: branches/ros-branch-0_3_8/reactos/dll/directx/ddraw/startup.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-branch-0_3_8/reactos/dll/di…
==============================================================================
--- branches/ros-branch-0_3_8/reactos/dll/directx/ddraw/startup.c [iso-8859-1] (original)
+++ branches/ros-branch-0_3_8/reactos/dll/directx/ddraw/startup.c [iso-8859-1] Fri Jan 30
09:14:10 2009
@@ -361,6 +361,13 @@
StartDirectDrawHel(LPDIRECTDRAW iface, BOOL reenable)
{
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
+
+ if (This->lpLcl->lpGbl->lpDDCBtmp == NULL)
+ {
+ DxHeapMemAlloc(This->lpLcl->lpGbl->lpDDCBtmp, sizeof(DDHAL_CALLBACKS));
+ if (!This->lpLcl->lpGbl->lpDDCBtmp)
+ return DDERR_OUTOFMEMORY;
+ }
This->lpLcl->lpGbl->lpDDCBtmp->HELDD.CanCreateSurface =
HelDdCanCreateSurface;
This->lpLcl->lpGbl->lpDDCBtmp->HELDD.CreateSurface =
HelDdCreateSurface;