Display Truetype fonts with Win32 API

This commit is contained in:
Thomas Bernard
2018-06-22 02:15:26 +02:00
parent 486a0a09d4
commit 84fdc001cd
2 changed files with 155 additions and 2 deletions

View File

@@ -438,7 +438,10 @@ void For_each_file(const char * directory_name, void Callback(const char *, cons
char search_string[MAX_PATH_CHARACTERS];
HANDLE h;
_snprintf(search_string, sizeof(search_string), "%s\\*", directory_name);
if (Realpath(directory_name, full_filename))
_snprintf(search_string, sizeof(search_string), "%s\\*", full_filename);
else
_snprintf(search_string, sizeof(search_string), "%s\\*", directory_name);
h = FindFirstFileA(search_string, &fd);
if (h != INVALID_HANDLE_VALUE)
{