From b5917be252caf9d38ae9466352c4176ef25732e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 7 Sep 2022 23:33:08 +0200 Subject: Simplify Err message format. --- c/window.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/window.h') diff --git a/c/window.h b/c/window.h index 16ea48e..9f399ba 100644 --- a/c/window.h +++ b/c/window.h @@ -19,9 +19,9 @@ struct Window { HMENU hm; if (!(hm = LoadMenuW(nullptr, MAKEINTRESOURCE(IDR_POPUPMENU)))) - throw Err(WINDOWS, L"Context menu could not be loaded: %s."); - if (!GetSubMenu(hm, 0)) - throw Err(WINDOWS, L"Submenu could not be retrieved: %s."); + throw Err(WINDOWS, L"Context menu could not be loaded"); + if (!(hm = GetSubMenu(hm, 0))) + throw Err(WINDOWS, L"Submenu could not be retrieved"); return hm; }(); -- cgit v1.2.3