Module: wine Branch: master Commit: 71929ffc4d1c7ac8064174758fd0bd9dd618dc22 URL: http://source.winehq.org/git/wine.git/?a=commit;h=71929ffc4d1c7ac8064174758f...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Fri May 4 16:25:38 2007 +0900
gdi32: Handle errors in WineEngAddFontResourceEx.
---
dlls/gdi32/freetype.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index d3ca23b..793c1ad 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -1730,11 +1730,12 @@ INT WineEngAddFontResourceEx(LPCWSTR file, DWORD flags, PVOID pdv)
if((unixname = wine_get_unix_file_name(file))) { - AddFontFileToList(unixname, NULL, NULL, ADDFONT_FORCE_BITMAP); + INT ret = AddFontFileToList(unixname, NULL, NULL, ADDFONT_FORCE_BITMAP); HeapFree(GetProcessHeap(), 0, unixname); + return ret; } } - return 1; + return 0; }
/*************************************************************