Commit fcd0f6b0 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdi32: Append "TrueType" suffix to registry key names.

parent 492b10ef
......@@ -3131,20 +3131,21 @@ static void update_reg_entries(void)
LIST_FOR_EACH_ENTRY( family, &font_list, Family, entry ) {
LIST_FOR_EACH_ENTRY( face, &family->faces, Face, entry ) {
char *buffer;
WCHAR *name;
if (!(face->flags & ADDFONT_EXTERNAL_FONT)) continue;
if(face->FullName)
{
len = strlenW(face->FullName) + sizeof(TrueType) / sizeof(WCHAR) + 1;
valueW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
strcpyW(valueW, face->FullName);
}
else
{
len = strlenW(family->FamilyName) + sizeof(TrueType) / sizeof(WCHAR) + 1;
valueW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
strcpyW(valueW, family->FamilyName);
}
name = face->FullName ? face->FullName : family->FamilyName;
len = strlenW(name) + 1;
if (face->scalable)
len += sizeof(TrueType) / sizeof(WCHAR);
valueW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
strcpyW(valueW, name);
if (face->scalable)
strcatW(valueW, TrueType);
buffer = strWtoA( CP_UNIXCP, face->file );
path = wine_get_dos_file_name( buffer );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment