diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-11-02 11:19:25 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-11-02 11:19:25 +0000 |
commit | 4fb42b711df5d8a9986d9587d7a1edc72f13eb0c (patch) | |
tree | 50d1b643508145fde1e99fe3a95cc72070d00f6f /plugins/NewsAggregator/Src/Update.cpp | |
parent | b31a2b228e4585acc015760aa7e84ddf1312bc8d (diff) |
NewsAggregator:
-Fixed memory leak
-Fixed crash when server isn't available
-performance improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@10899 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Update.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/Update.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewsAggregator/Src/Update.cpp b/plugins/NewsAggregator/Src/Update.cpp index cbcc2efd0f..ec394d5fc8 100644 --- a/plugins/NewsAggregator/Src/Update.cpp +++ b/plugins/NewsAggregator/Src/Update.cpp @@ -25,7 +25,7 @@ UPDATELIST *UpdateListHead = NULL; UPDATELIST *UpdateListTail = NULL;
// main auto-update timer
-VOID CALLBACK timerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
+void CALLBACK timerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
// only run if it is not current updating and the auto update option is enabled
if (!ThreadRunning && !Miranda_Terminated()) {
@@ -40,13 +40,13 @@ VOID CALLBACK timerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime) }
}
if (!ThreadRunning && HaveUpdates)
- mir_forkthread(UpdateThreadProc, (LPVOID)FALSE);
+ mir_forkthread(UpdateThreadProc, 0);
}
}
// temporary timer for first run
// when this is run, it kill the old startup timer and create the permenant one above
-VOID CALLBACK timerProc2(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
+void CALLBACK timerProc2(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
KillTimer(NULL, timerId);
ThreadRunning = FALSE;
@@ -112,7 +112,7 @@ void DestroyUpdateList(void) ReleaseMutex(hUpdateMutex);
}
-void UpdateThreadProc(LPVOID AvatarCheck)
+void UpdateThreadProc(void *AvatarCheck)
{
WaitForSingleObject(hUpdateMutex, INFINITE);
if (ThreadRunning) {
|