common: always use 0 for build number and make get_product_version return "vX.X.X"

This commit is contained in:
yuyoyuppe
2020-02-20 16:03:35 +03:00
committed by Andrey Nekrasov
parent f892338098
commit b90f1fc237
2 changed files with 4 additions and 6 deletions

View File

@@ -491,10 +491,9 @@ std::wstring get_process_path(HWND window) noexcept {
}
std::wstring get_product_version() {
static std::wstring version = std::to_wstring(VERSION_MAJOR) +
static std::wstring version = L"v" + std::to_wstring(VERSION_MAJOR) +
L"." + std::to_wstring(VERSION_MINOR) +
L"." + std::to_wstring(VERSION_REVISION) +
L"." + std::to_wstring(VERSION_BUILD);
L"." + std::to_wstring(VERSION_REVISION);
return version;
}