diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-29 18:14:17 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-29 18:14:17 +0000 |
commit | d10d29da43c16bd537abcac6bf5314a49d30a938 (patch) | |
tree | 2f39d6a2c4e82780a6d841acc0069a19c16e8b59 /plugins/PluginUpdater/src/Utils.cpp | |
parent | 969481ec4ea41609fa55b80c2ca3629ff7b9279d (diff) |
PluginUpdater:
-More correct way of using Folders plugin
-Code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@9619 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 06e0407c2f..cf3de1c7ec 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -23,7 +23,7 @@ BOOL DlgDld; int Number = 0;
TCHAR tszDialogMsg[2048] = {0};
FILEINFO *pFileInfo = NULL;
-HANDLE hCheckThread = NULL, hListThread = NULL, hNetlibUser = NULL;
+HANDLE hNetlibUser = NULL;
POPUP_OPTIONS PopupOptions = {0};
aPopups PopupsList[POPUPS];
extern DWORD g_mirandaVersion;
@@ -46,7 +46,7 @@ static iconList[] = { "plg_list", LPGEN("Plugin list"), IDI_PLGLIST },
};
-void IcoLibInit()
+void InitIcoLib()
{
TCHAR destfile[MAX_PATH];
GetModuleFileName(hInst, destfile, MAX_PATH);
@@ -64,7 +64,7 @@ void IcoLibInit() }
}
-BOOL NetlibInit()
+void InitNetlib()
{
NETLIBUSER nlu = {0};
nlu.cbSize = sizeof(nlu);
@@ -72,11 +72,9 @@ BOOL NetlibInit() nlu.ptszDescriptiveName = TranslateT("Plugin Updater HTTP connection");
nlu.szSettingsModule = MODNAME;
hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
-
- return hNetlibUser != NULL;
}
-void NetlibUnInit()
+void UnloadNetlib()
{
Netlib_CloseHandle(hNetlibUser);
hNetlibUser = NULL;
|