aboutsummaryrefslogtreecommitdiff
path: root/common/fmplayer_fontrom_win.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-04-14 23:54:44 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-04-14 23:54:44 +0900
commita771a6f083d450c9cbba7367a08602c0a4bd6abc (patch)
treee540f5edf4b1fe7c271d55ab542ab72d42c521ae /common/fmplayer_fontrom_win.c
parent61c98716a1fe1269d481d1be20e2d71a52f9a0b2 (diff)
win32: fixed several UI issues and updated manifest
Diffstat (limited to 'common/fmplayer_fontrom_win.c')
-rw-r--r--common/fmplayer_fontrom_win.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/fmplayer_fontrom_win.c b/common/fmplayer_fontrom_win.c
index 8ba8300..4f9ed12 100644
--- a/common/fmplayer_fontrom_win.c
+++ b/common/fmplayer_fontrom_win.c
@@ -13,7 +13,7 @@ static struct {
bool font_rom_loaded;
} g;
-void fmplayer_font_rom_load(struct fmdsp_font *font) {
+bool fmplayer_font_rom_load(struct fmdsp_font *font) {
const wchar_t *path = L"font.rom";
wchar_t exepath[MAX_PATH];
if (GetModuleFileNameW(0, exepath, MAX_PATH)) {
@@ -33,8 +33,9 @@ void fmplayer_font_rom_load(struct fmdsp_font *font) {
CloseHandle(file);
fmdsp_font_from_font_rom(font, g.fontrombuf);
g.font_rom_loaded = true;
- return;
+ return true;
err:
if (file != INVALID_HANDLE_VALUE) CloseHandle(file);
fmdsp_font_win(font);
+ return false;
}