diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-12 10:33:25 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-12 10:33:25 +0000 |
commit | c4c45a4215566846b565d44c5f327fe5c69206d5 (patch) | |
tree | b5314584317b4b65e516cc27887a9cfcc1ede60b /plugins/PluginUpdater/src | |
parent | 23cf36271ec9b7fedd439b251a6785cdd4c861ae (diff) |
Fix for previous revision
git-svn-id: http://svn.miranda-ng.org/main/trunk@5337 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r-- | plugins/PluginUpdater/src/PluginUpdater.cpp | 2 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp index 0d9b365101..8fbf8aa5d9 100644 --- a/plugins/PluginUpdater/src/PluginUpdater.cpp +++ b/plugins/PluginUpdater/src/PluginUpdater.cpp @@ -33,6 +33,7 @@ HANDLE hPluginUpdaterFolder = NULL, hEmptyFolder = NULL; HINSTANCE hInst = NULL;
TCHAR tszRoot[MAX_PATH] = {0}, tszTempPath[MAX_PATH];
int hLangpack;
+DWORD g_mirandaVersion;
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
@@ -68,6 +69,7 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
+ g_mirandaVersion = mirandaVersion;
return &pluginInfoEx;
}
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 2da1d5080d..00c6715a7c 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -26,6 +26,7 @@ FILEINFO *pFileInfo = NULL; HANDLE hCheckThread = NULL, hListThread = NULL, hNetlibUser = NULL;
POPUP_OPTIONS PopupOptions = {0};
aPopups PopupsList[POPUPS];
+extern DWORD g_mirandaVersion;
/////////////////////////////////////////////////////////////////////////////////////
// we don't use Icon_Register here because it should work under Miranda IM too
@@ -276,7 +277,7 @@ BOOL DownloadFile(LPCTSTR tszURL, LPCTSTR tszLocal, int CRCsum, HANDLE &nlc) #endif
nlhr.requestType = REQUEST_GET;
nlhr.flags = NLHRF_DUMPASTEXT | NLHRF_HTTP11;
- if (mirandaVersion >= PLUGIN_MAKE_VERSION(0, 9, 0, 0))
+ if (g_mirandaVersion >= PLUGIN_MAKE_VERSION(0, 9, 0, 0))
nlhr.flags |= NLHRF_PERSISTENT;
nlhr.nlc = nlc;
char *szUrl = mir_t2a(tszURL);
|