Author: sginsberg
Date: Thu Oct 16 15:21:00 2008
New Revision: 36775
URL:
http://svn.reactos.org/svn/reactos?rev=36775&view=rev
Log:
- More correct check for GetTextFaceW
Modified:
trunk/reactos/dll/win32/gdi32/objects/text.c
Modified: trunk/reactos/dll/win32/gdi32/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/te…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] Thu Oct 16 15:21:00 2008
@@ -365,8 +365,7 @@
{
INT retValue;
- if ((pFaceName && nCount) ||
- !(pFaceName && nCount))
+ if (!pFaceName || (pFaceName && nCount))
{
retValue = NtGdiGetTextFaceW(hDC, nCount, pFaceName, 0);
}