mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Prevent unnecessary code where count is zero in NtGdiExtTextOut
svn path=/trunk/; revision=9561
This commit is contained in:
parent
56099c14d4
commit
e4bd8fff85
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: text.c,v 1.94 2004/05/30 14:01:13 weiden Exp $ */
|
||||
/* $Id: text.c,v 1.95 2004/05/30 14:51:45 jfilby Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
#include <ft2build.h>
|
||||
|
@ -1502,7 +1502,7 @@ NtGdiExtTextOut(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (NULL != UnsafeDx)
|
||||
if (NULL != UnsafeDx && Count > 0)
|
||||
{
|
||||
Dx = ExAllocatePoolWithTag(PagedPool, Count * sizeof(INT), TAG_GDITEXT);
|
||||
if (NULL == Dx)
|
||||
|
|
Loading…
Reference in a new issue