diff --git a/objects/font.c b/objects/font.c index 6f5432ff2b..9b0bcfb3a6 100644 --- a/objects/font.c +++ b/objects/font.c @@ -1154,7 +1154,7 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count, else break; } size->cx = extent; - *lpnFit = nFit; + if(lpnFit) *lpnFit = nFit; ret = TRUE; TRACE("(%08x %s %d) returning %d %ld x %ld\n",