summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r--plugins/PluginUpdater/src/Utils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp
index 335a85b5f6..9c991c3462 100644
--- a/plugins/PluginUpdater/src/Utils.cpp
+++ b/plugins/PluginUpdater/src/Utils.cpp
@@ -228,10 +228,12 @@ bool DownloadFile(FILEURL *pFileURL, HNETLIBCONN &nlc)
*p = 0;
rtrim(szMirVer);
- int osVer = LOWORD(GetVersion());
+ char szOsVer[100];
+ OS_GetShortString(szOsVer, _countof(szOsVer));
+
CMStringA szUserAgent("Miranda NG/");
szUserAgent.Append(szMirVer);
- szUserAgent.AppendFormat(" (Windows NT %d.%d", LOBYTE(osVer), HIBYTE(osVer));
+ szUserAgent.AppendFormat(" (%s", szOsVer);
#ifdef _WIN64
szUserAgent.Append("; Win64; x64");
#endif