Author: gschneider
Date: Fri Oct 17 10:13:27 2008
New Revision: 36791
URL:
http://svn.reactos.org/svn/reactos?rev=36791&view=rev
Log:
Typo: check for success of newest allocations.
Modified:
trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Surface/createsurface.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/ddraw/Surface/createsurface.c [iso-8859-1] Fri Oct 17
10:13:27 2008
@@ -104,7 +104,7 @@
/* for more easy to free the memory if something goes wrong */
DxHeapMemAlloc(slist_gbl, num_of_surf * sizeof( LPDDRAWI_DDRAWSURFACE_GBL ) );
- if( slist_lcl == NULL )
+ if( slist_gbl == NULL )
{
DxHeapMemFree(slist_int);
return DDERR_OUTOFMEMORY;
@@ -112,7 +112,7 @@
/* for more easy to free the memory if something goes wrong */
DxHeapMemAlloc(slist_more, num_of_surf * sizeof( LPDDRAWI_DDRAWSURFACE_MORE ) );
- if( slist_lcl == NULL )
+ if( slist_more == NULL )
{
DxHeapMemFree(slist_int);
return DDERR_OUTOFMEMORY;