[ros-diffs] [greatlrd] 27077: small code cleanup

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Fri Jun 8 21:18:46 CEST 2007


Author: greatlrd
Date: Fri Jun  8 23:18:45 2007
New Revision: 27077

URL: http://svn.reactos.org/svn/reactos?rev=27077&view=rev
Log:
small code cleanup

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.c?rev=27077&r1=27076&r2=27077&view=diff
==============================================================================
--- trunk/reactos/dll/directx/ddraw/startup.c (original)
+++ trunk/reactos/dll/directx/ddraw/startup.c Fri Jun  8 23:18:45 2007
@@ -124,6 +124,7 @@
                 return DDERR_GENERIC;
             }
             */
+            This->lpLcl->hDD = ddgbl.hDD;
             return DD_OK;
         }
     }
@@ -282,8 +283,7 @@
     /* Fill some basic info for Surface */
     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;
+    This->lpLcl->hDD = ddgbl.hDD;
 
     DX_STUB_str("DD_OK\n");
     return DD_OK;




More information about the Ros-diffs mailing list