From 44c8b315c666100d07630a34b092f1b3e3333dc2 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Tue, 13 Apr 2021 14:44:59 +0200 Subject: [PATCH] Attempt to make CI happy --- test/cfg/wxwidgets.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 3e03ef105..5ac25fa86 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -31,10 +31,11 @@ #ifdef __VISUALC__ // Ensure no duplicateBreak warning is issued after wxLogApiError() calls. // This function does not terminate execution. -bool duplicateBreak_wxLogApiError(const wxString &msg, const HRESULT &hr) +bool duplicateBreak_wxLogApiError(const wxString &msg, const HRESULT &hr, wxString &str) { - if (FAILED(hr)) { + if (hr) { wxLogApiError(msg,hr); + str = "fail"; return false; } return true;