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)