diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-05-01 16:53:52 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-05-01 16:53:52 +0000 |
commit | 7e2bed99b8564bb1393b0b133c2a3ae415682fde (patch) | |
tree | 8e2d03b06bba6a829117d180a41796d3c224e42a /plugins/AVS/src/acc.cpp | |
parent | d9183c048c6f0966dacdcb693bfed66d0662f708 (diff) |
AVS:
-minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@13335 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS/src/acc.cpp')
-rw-r--r-- | plugins/AVS/src/acc.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/AVS/src/acc.cpp b/plugins/AVS/src/acc.cpp index 75ba7bdbf9..256f92936d 100644 --- a/plugins/AVS/src/acc.cpp +++ b/plugins/AVS/src/acc.cpp @@ -399,8 +399,8 @@ static LRESULT CALLBACK ACCWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP return TRUE;
case WM_NCDESTROY:
- DestroyAnimation(data);
if (data) {
+ DestroyAnimation(data);
UnhookEvent(data->hHook);
UnhookEvent(data->hHookMy);
mir_free(data);
@@ -421,10 +421,7 @@ static LRESULT CALLBACK ACCWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP DestroyAnimation(data);
data->hContact = lParam;
- if (lParam == NULL)
- data->proto[0] = '\0';
- else
- mir_strncpy(data->proto, GetContactProto(data->hContact), sizeof(data->proto));
+ mir_strncpy(data->proto, GetContactProto(data->hContact), sizeof(data->proto));
StartAnimation(data);
|