fix: documentation path under Windows

This commit is contained in:
Stéphane Lesimple
2021-10-09 16:55:46 +02:00
parent 65976868cf
commit 50ff1c0403
2 changed files with 13 additions and 2 deletions

View File

@@ -480,6 +480,18 @@ char *find_file(char *file, size_t *size, char *lang)
g_free(path);
}
{ if(lang)
path = g_strdup_printf("%s.%s", file, lang_suffix);
else path = g_strdup_printf("%s", file);
if(LargeStat(path, &stat_size))
{ *size = stat_size;
return path;
}
g_free(path);
}
return NULL;
}