Author: greatlrd
Date: Sun Apr 22 18:02:37 2007
New Revision: 26462
URL:
http://svn.reactos.org/svn/reactos?rev=26462&view=rev
Log:
fixing a small bug in startup.c
Modified:
trunk/reactos/dll/directx/ddraw/startup.c
Modified: trunk/reactos/dll/directx/ddraw/startup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/startup.…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/startup.c (original)
+++ trunk/reactos/dll/directx/ddraw/startup.c Sun Apr 22 18:02:37 2007
@@ -88,7 +88,7 @@
DWORD hal_ret = DD_FALSE;
DWORD hel_ret = DD_FALSE;
DWORD devicetypes = 0;
- DWORD dwFlags;
+ DWORD dwFlags = 0;
DX_WINDBG_trace();
@@ -218,8 +218,10 @@
}
/* Fill some basic info for Surface */
-
- This->lpLcl->hDD = ddgbl.hDD;
+ This->lpLcl->lpGbl->dwFlags = dwFlags | DDRAWI_ATTACHEDTODESKTOP;
+ This->lpLcl->lpDDCB = This->lpLcl->lpGbl->lpDDCBtmp;
+ This->lpLcl->hDD = This->lpLcl->lpGbl->hDD;
+ ddgbl.hDD = This->lpLcl->lpGbl->hDD;
return DD_OK;
}