Add NULL check for lpnFit in GetTextExtentExPointW.
This commit is contained in:
parent
bc381a6a3f
commit
96cda94483
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue