Commit 93eca9e9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdi32: Set data size for fonts created from memory.

parent 03ccce70
...@@ -5335,6 +5335,7 @@ static void fill_fileinfo_from_face( GdiFont *font, Face *face ) ...@@ -5335,6 +5335,7 @@ static void fill_fileinfo_from_face( GdiFont *font, Face *face )
if (!face->file) if (!face->file)
{ {
font->fileinfo = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*font->fileinfo)); font->fileinfo = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*font->fileinfo));
font->fileinfo->size.QuadPart = face->font_data_size;
return; return;
} }
......
...@@ -5139,7 +5139,6 @@ static void test_realization_info(const char *name, DWORD size, BOOL is_memory_r ...@@ -5139,7 +5139,6 @@ static void test_realization_info(const char *name, DWORD size, BOOL is_memory_r
ok(ret != 0, "Failed to get font file info, ret %d gle %d.\n", ret, GetLastError()); ok(ret != 0, "Failed to get font file info, ret %d gle %d.\n", ret, GetLastError());
if (ret) if (ret)
{ {
todo_wine_if(is_memory_resource)
ok(is_memory_resource ? file_info.size.QuadPart == size : file_info.size.QuadPart > 0, "Unexpected file size.\n"); ok(is_memory_resource ? file_info.size.QuadPart == size : file_info.size.QuadPart > 0, "Unexpected file size.\n");
ok(is_memory_resource ? !file_info.path[0] : file_info.path[0], "Unexpected file path %s.\n", ok(is_memory_resource ? !file_info.path[0] : file_info.path[0], "Unexpected file path %s.\n",
wine_dbgstr_w(file_info.path)); wine_dbgstr_w(file_info.path));
......
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