diff options
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);
|