diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-12 21:17:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-12 21:17:31 +0300 |
commit | adad151967363c037c0bd8027d53f72dd5064770 (patch) | |
tree | 7dd915e79570a7ab92a60edb9d8d78d723f5e19e /plugins/PluginUpdater/src/Utils.cpp | |
parent | cd423dcb78e0d68ad55a017cbf86503b1d76714d (diff) |
attempt to create a suitable Miranda version
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index a3d655c300..6add34f2f7 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -222,9 +222,13 @@ bool DownloadFile(FILEURL *pFileURL, HNETLIBCONN &nlc) {
char szMirVer[100];
Miranda_GetVersionText(szMirVer, _countof(szMirVer));
+ if (auto *p = strchr(szMirVer, '('))
+ *p = 0;
wchar_t wszOsVer[100];
GetOSDisplayString(wszOsVer, _countof(wszOsVer));
+ if (auto *p = wcschr(wszOsVer, '('))
+ *p = 0;
CMStringA szUserAgent("Miranda ");
szUserAgent.Append(szMirVer);
|