From a771a6f083d450c9cbba7367a08602c0a4bd6abc Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 14 Apr 2018 23:54:44 +0900 Subject: win32: fixed several UI issues and updated manifest --- common/fmplayer_fontrom_win.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/fmplayer_fontrom_win.c') 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; } -- cgit v1.2.3