gdi32: Handle errors in WineEngAddFontResourceEx.

This commit is contained in:
Dmitry Timoshkov 2007-05-04 16:25:38 +09:00 committed by Alexandre Julliard
parent 89245248c7
commit 71929ffc4d
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
/*************************************************************