src/video/windows/SDL_windowsframebuffer.c
changeset 9946 6f852b334192
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
     1.1 --- a/src/video/windows/SDL_windowsframebuffer.c	Sun Dec 06 17:50:51 2015 +0100
     1.2 +++ b/src/video/windows/SDL_windowsframebuffer.c	Sun Dec 06 17:51:11 2015 +0100
     1.3 @@ -42,6 +42,9 @@
     1.4      /* Find out the format of the screen */
     1.5      size = sizeof(BITMAPINFOHEADER) + 256 * sizeof (RGBQUAD);
     1.6      info = (LPBITMAPINFO)SDL_stack_alloc(Uint8, size);
     1.7 +    if (!info) {
     1.8 +        return SDL_OutOfMemory();
     1.9 +    }
    1.10  
    1.11      SDL_memset(info, 0, size);
    1.12      info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);