diff options
| -rw-r--r-- | toolsrc/src/vcpkg_metrics_uploader.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg_metrics_uploader.cpp b/toolsrc/src/vcpkg_metrics_uploader.cpp index 2e3c3c550..9dbdc1fee 100644 --- a/toolsrc/src/vcpkg_metrics_uploader.cpp +++ b/toolsrc/src/vcpkg_metrics_uploader.cpp @@ -7,10 +7,8 @@ using namespace vcpkg; int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { - LPWSTR* szArgList; int argCount; - - szArgList = CommandLineToArgvW(GetCommandLineW(), &argCount); + LPWSTR * szArgList = CommandLineToArgvW(GetCommandLineW(), &argCount); Checks::check_exit(VCPKG_LINE_INFO, argCount == 2, "Requires exactly one argument, the path to the payload file"); Metrics::upload(Files::read_contents(szArgList[1]).value_or_exit(VCPKG_LINE_INFO)); |
