From 3517a2805b34fa691b39e4c134c4bcfd1364e18b Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 10 Jan 2022 07:49:02 -0800 Subject: [PATCH] _get_pgmptr --- cppwinrt/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cppwinrt/main.cpp b/cppwinrt/main.cpp index eab187d6a..4ce543925 100644 --- a/cppwinrt/main.cpp +++ b/cppwinrt/main.cpp @@ -268,7 +268,9 @@ Where is one or more of: if (settings.verbose) { - w.write(" tool: %\n", canonical(path(argv[0]).replace_extension("exe")).string()); + char* path = nullptr; + _get_pgmptr(&path); + w.write(" tool: %\n", path); w.write(" ver: %\n", CPPWINRT_VERSION_STRING); for (auto&& file : settings.input)