Module: wine Branch: master Commit: b27e814de6fe9e784a851fe1ed7cfa934a591c61 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b27e814de6fe9e784a851fe1ed...
Author: Josh Juran josh@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;