diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-19 22:20:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-19 22:20:01 +0300 |
commit | 2763040215137717c01e3b170e44b8b55cf38593 (patch) | |
tree | 7296d5acff252034706a58acae91d078c6d3060e /plugins/PluginUpdater/src/Utils.cpp | |
parent | 23445f29860da2ebec3ba021f79f860e128e9113 (diff) |
update for PluginUpdater_IM
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 7554c723ef..ba52be0285 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -59,7 +59,12 @@ void InitNetlib() {
NETLIBUSER nlu = {};
nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS | NUF_UNICODE;
- nlu.szDescriptiveName.w = TranslateT("Plugin Updater HTTP connections");
+ #if MIRANDA_VER >= 0x0A00
+ nlu.szDescriptiveName.w = TranslateT("Plugin Updater HTTP connections");
+ #else
+ nlu.cbSize = sizeof(nlu);
+ nlu.ptszDescriptiveName = TranslateT("Plugin Updater HTTP connections");
+ #endif
nlu.szSettingsModule = MODNAME;
hNetlibUser = Netlib_RegisterUser(&nlu);
}
@@ -125,7 +130,7 @@ int Get_CRC(unsigned char* buffer, ULONG bufsize) int CompareHashes(const ServListEntry *p1, const ServListEntry *p2)
{
- return wcsicmp(p1->m_name, p2->m_name);
+ return _wcsicmp(p1->m_name, p2->m_name);
}
bool ParseHashes(const wchar_t *ptszUrl, ptrW &baseUrl, SERVLIST &arHashes)
@@ -316,7 +321,9 @@ bool DownloadFile(FILEURL *pFileURL, HNETLIBCONN &nlc) void __stdcall OpenPluginOptions(void*)
{
- Options_Open(NULL, L"Plugins");
+ #if MIRANDA_VER >= 0x0A00
+ Options_Open(NULL, L"Plugins");
+ #endif
}
// FUNCTION: IsRunAsAdmin()
|