Josh Juran : gdi32: Simplify logic in WineEngGetFontData().
Alexandre Julliard
julliard at winehq.org
Mon Sep 12 11:42:56 CDT 2011
Module: wine
Branch: master
Commit: b27e814de6fe9e784a851fe1ed7cfa934a591c61
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b27e814de6fe9e784a851fe1ed7cfa934a591c61
Author: Josh Juran <josh at iswifter.net>
Date: Fri Sep 9 14:19:12 2011 -0700
gdi32: Simplify logic in WineEngGetFontData().
---
dlls/gdi32/freetype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 716a37f..d71b0c5 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -6198,7 +6198,7 @@ DWORD WineEngGetFontData(GdiFont *font, DWORD table, DWORD offset, LPVOID buf,
if(!FT_IS_SFNT(ft_face))
return GDI_ERROR;
- if(!buf || !cbData)
+ if(!buf)
len = 0;
else
len = cbData;
More information about the wine-cvs
mailing list