Add NULL check for lpnFit in GetTextExtentExPointW.

This commit is contained in:
Dmitry Timoshkov 2001-04-16 19:33:51 +00:00 committed by Alexandre Julliard
parent bc381a6a3f
commit 96cda94483

View File

@ -1154,7 +1154,7 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count,
else break; else break;
} }
size->cx = extent; size->cx = extent;
*lpnFit = nFit; if(lpnFit) *lpnFit = nFit;
ret = TRUE; ret = TRUE;
TRACE("(%08x %s %d) returning %d %ld x %ld\n", TRACE("(%08x %s %d) returning %d %ld x %ld\n",