Index: reactos/win32ss/gdi/gdi32/objects/font.c =================================================================== --- reactos/win32ss/gdi/gdi32/objects/font.c (revision 74920) +++ reactos/win32ss/gdi/gdi32/objects/font.c (working copy) @@ -385,7 +385,7 @@ DWORD ret; UINT font_cp; - if ( !lpString || uCount <= 0 || (nMaxExtent < 0 && nMaxExtent != -1 ) ) + if ( !lpString || uCount <= 0 || !lpResults || (nMaxExtent < 0 && nMaxExtent != -1 ) ) { SetLastError(ERROR_INVALID_PARAMETER); return 0;