From 160b5ac92a846038372225ab79e29166fd152949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 25 Aug 2022 03:28:05 +0200 Subject: Fix MSVC compatibility. --- c/ext.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'c/ext.cpp') diff --git a/c/ext.cpp b/c/ext.cpp index 04ab096..d8f3eb9 100644 --- a/c/ext.cpp +++ b/c/ext.cpp @@ -8,7 +8,7 @@ extern CfgA& g_cfg; extern FileView g_fvElv; extern FileView g_fvDlv; -void OpenOnline(int iEp) +bool OpenOnline(int iEp) { wchar_t url[sizeof(g_cfg.url)+4]; Swprintf(url, L"%s%d", g_cfg.url, iEp); @@ -16,9 +16,10 @@ void OpenOnline(int iEp) ShellExecute(nullptr, L"open", url, nullptr, nullptr, SW_SHOWNORMAL)); if (r <= 32) throw Win32Error(); + return true; } -void OpenWiki(int iEp) +bool OpenWiki(int iEp) { const DlvDataA& d = g_fvDlv.At(iEp-1); wchar_t url[sizeof(d.wiki)+35]; @@ -27,6 +28,7 @@ void OpenWiki(int iEp) ShellExecute(nullptr, L"open", url, nullptr, nullptr, SW_SHOWNORMAL)); if (r <= 32) throw Win32Error(); + return true; } static inline bool MatchFileName(wchar_t (&file)[MAX_PATH], const wchar_t* const siEp) noexcept -- cgit v1.2.3