mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 15:45:20 +00:00
Typo: check for success of newest allocations.
svn path=/trunk/; revision=36791
This commit is contained in:
parent
2edf0dbef8
commit
87fd2c6cad
|
@ -104,7 +104,7 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
|||
|
||||
/* 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 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
|||
|
||||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue