diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 8fa0800b6..a0d2827d7 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2815,6 +2815,8 @@ status_t SurfaceFlinger::captureScreenImplLocked( *h = sh; *f = PIXEL_FORMAT_RGBA_8888; result = NO_ERROR; + } else { + result = NO_MEMORY; } } else { result = NO_MEMORY;