diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-08-03 20:19:39 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-08-03 20:19:39 +0000 |
commit | c78a9a7552554b65bcd3d27605da2e470b39342d (patch) | |
tree | 261f83c595d3b174d93cad6c37ca9342ec378a5b /src | |
parent | a09f78e53ce2bf9d74f7d8ee6334073a451c7b14 (diff) |
no more "Unicode" in version name
git-svn-id: http://svn.miranda-ng.org/main/trunk@1345 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/core/miranda.cpp | 5 |
1 files 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;
|