aboutsummaryrefslogtreecommitdiff
path: root/c/window.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-09-07 23:33:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-09-07 23:33:08 +0200
commitb5917be252caf9d38ae9466352c4176ef25732e3 (patch)
tree8eee2398b84cd533999a6d6f7539131daef5acfd /c/window.h
parentac7d676a1c457f71f1d3ae17d74699dd95c9c985 (diff)
downloadEpisodeBrowser-b5917be252caf9d38ae9466352c4176ef25732e3.tar.gz
Simplify Err message format.
Diffstat (limited to 'c/window.h')
-rw-r--r--c/window.h6
1 files changed, 3 insertions, 3 deletions
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;
}();