commit | 0f9bc1d3b7d3529a8162eb8ef5537d314d691121 | [log] [tgz] |
---|---|---|
author | Nikolay Sivov <bunglehead@gmail.com> | Sun May 03 12:42:00 2009 +0400 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon May 04 14:57:32 2009 +0200 |
tree | b4066cbbb3f6468bb9a933ee4fdc8adb67f64eca | |
parent | 1b1e0027db96374cc55e4f5de9128246fc9e9704 [diff] [blame] |
gdi32: Check header pointer in CreateDIBitmap.
diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c index 0dceaa8..086eaae 100644 --- a/dlls/gdi32/dib.c +++ b/dlls/gdi32/dib.c
@@ -1097,6 +1097,8 @@ DWORD compr, size; DC *dc; + if (!header) return 0; + if (DIB_GetBitmapInfo( header, &width, &height, &planes, &bpp, &compr, &size ) == -1) return 0; if (width < 0)