From c78a9a7552554b65bcd3d27605da2e470b39342d Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 3 Aug 2012 20:19:39 +0000 Subject: no more "Unicode" in version name git-svn-id: http://svn.miranda-ng.org/main/trunk@1345 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/miranda.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/miranda.cpp b/src/core/miranda.cpp index 1e13d9ad60..0ad716daf9 100644 --- a/src/core/miranda.cpp +++ b/src/core/miranda.cpp @@ -402,10 +402,9 @@ static INT_PTR GetMirandaVersionText(WPARAM wParam, LPARAM lParam) pVerInfo = mir_alloc(verInfoSize); GetFileVersionInfo(filename, 0, verInfoSize, pVerInfo); VerQueryValue(pVerInfo, _T("\\StringFileInfo\\000004b0\\ProductVersion"), (LPVOID*)&productVersion, &blockSize); + strncpy((char*)lParam, _T2A(productVersion), wParam); #if defined(_WIN64) - mir_snprintf((char*)lParam, wParam, "%S x64 Unicode", productVersion); - #else - mir_snprintf((char*)lParam, wParam, "%S Unicode", productVersion); + strcat_s((char*)lParam, wParam, " x64"); #endif mir_free(pVerInfo); return 0; -- cgit v1.2.3