mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
Fix a stupied bug in DdAttachSurface when pSurfaceFrom->hDDSurface is NULL or pSurfaceTo->hDDSurface is null we need create them.
svn path=/trunk/; revision=29202
This commit is contained in:
@@ -942,7 +942,7 @@ DdAttachSurface( LPDDRAWI_DDRAWSURFACE_LCL pSurfaceFrom,
|
||||
LPDDRAWI_DDRAWSURFACE_LCL pSurfaceTo)
|
||||
{
|
||||
/* Create Surface if it does not exits one */
|
||||
if (pSurfaceFrom->hDDSurface)
|
||||
if (!pSurfaceFrom->hDDSurface)
|
||||
{
|
||||
if (!bDDCreateSurface(pSurfaceFrom, FALSE))
|
||||
{
|
||||
@@ -951,7 +951,7 @@ DdAttachSurface( LPDDRAWI_DDRAWSURFACE_LCL pSurfaceFrom,
|
||||
}
|
||||
|
||||
/* Create Surface if it does not exits one */
|
||||
if (pSurfaceTo->hDDSurface)
|
||||
if (!pSurfaceTo->hDDSurface)
|
||||
{
|
||||
if (!bDDCreateSurface(pSurfaceTo, FALSE))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user