mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
gdi32: Do not report an error if a requested to add font is already loaded.
This commit is contained in:
parent
82e068046b
commit
cfe289e69d
1 changed files with 2 additions and 2 deletions
|
@ -1135,13 +1135,13 @@ static INT AddFontFileToList(const char *file, char *fake_family, const WCHAR *t
|
|||
TRACE("This font is a replacement but the original really exists, so we'll skip the replacement\n");
|
||||
HeapFree(GetProcessHeap(), 0, StyleW);
|
||||
pFT_Done_Face(ft_face);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
if(!pHeader || pHeader->Font_Revision <= face->font_version) {
|
||||
TRACE("Original font is newer so skipping this one\n");
|
||||
HeapFree(GetProcessHeap(), 0, StyleW);
|
||||
pFT_Done_Face(ft_face);
|
||||
return 0;
|
||||
return 1;
|
||||
} else {
|
||||
TRACE("Replacing original with this one\n");
|
||||
list_remove(&face->entry);
|
||||
|
|
Loading…
Reference in a new issue