diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-24 18:19:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-24 18:19:31 +0300 |
commit | 7d4ed0164a32a3667fb3786fb538fc083153883a (patch) | |
tree | 8450ef2991644997a8012d7d532b361a56456ced /plugins/AVS/src/options.cpp | |
parent | 9a7d075ed476ac2990a9a633b131b39b7e3e9945 (diff) |
AVS: fix for memory corruption
Diffstat (limited to 'plugins/AVS/src/options.cpp')
-rw-r--r-- | plugins/AVS/src/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/AVS/src/options.cpp b/plugins/AVS/src/options.cpp index 2353e978fe..4a22874456 100644 --- a/plugins/AVS/src/options.cpp +++ b/plugins/AVS/src/options.cpp @@ -346,7 +346,7 @@ static INT_PTR CALLBACK DlgProcOptionsProtos(HWND hwndDlg, UINT msg, WPARAM wPar AVATARDRAWREQUEST avdrq = { 0 }; avdrq.hTargetDC = dis->hDC; avdrq.dwFlags |= AVDRQ_PROTOPICT; - avdrq.szProto = (g_selectedProto) ? g_selectedProto->szProtoname.get() : nullptr; + avdrq.szProto = (g_selectedProto) ? g_selectedProto->szProtoname : nullptr; GetClientRect(GetDlgItem(hwndDlg, IDC_PROTOPIC), &avdrq.rcDraw); CallService(MS_AV_DRAWAVATAR, 0, (LPARAM)&avdrq); } |