Commit 96cda944 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Add NULL check for lpnFit in GetTextExtentExPointW.

parent bc381a6a
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment