- More correct check for GetTextFaceW
authorStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 16 Oct 2008 20:21:00 +0000 (20:21 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 16 Oct 2008 20:21:00 +0000 (20:21 +0000)
svn path=/trunk/; revision=36775

reactos/dll/win32/gdi32/objects/text.c

index 82ec9fb..143afea 100644 (file)
@@ -365,8 +365,7 @@ GetTextFaceW(HDC hDC,
 {
     INT retValue;
 
-    if ((pFaceName && nCount) ||
-        !(pFaceName && nCount))
+    if (!pFaceName || (pFaceName && nCount))
     {
         retValue = NtGdiGetTextFaceW(hDC, nCount, pFaceName, 0);
     }