summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_db.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-03 12:52:26 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-03 12:52:26 +0000
commita4058bdd418f3a3168e26d1fc2a07ae2e9bab0c6 (patch)
tree7510bd6aad87fa3cf5595d33e0c42b2555e38e30 /protocols/SkypeWeb/src/skype_db.h
parent3a5c9959684fd0f7613ded5efdad7a23e08f09ec (diff)
forgotten operator
git-svn-id: http://svn.miranda-ng.org/main/trunk@14831 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_db.h')
-rw-r--r--protocols/SkypeWeb/src/skype_db.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_db.h b/protocols/SkypeWeb/src/skype_db.h
index 633219d214..42403cdc19 100644
--- a/protocols/SkypeWeb/src/skype_db.h
+++ b/protocols/SkypeWeb/src/skype_db.h
@@ -39,19 +39,20 @@ public:
__inline explicit pass_ptrA() : mir_ptr(){}
__inline explicit pass_ptrA(char* _p) : mir_ptr(_p) {}
__inline ~pass_ptrA() { zero(); }
+ __inline char* operator = (char *_p){ zero(); mir_ptr::operator=(_p); }
__inline void zero()
- { char *data = mir_ptr::operator char *();
- if (data) SecureZeroMemory(data, mir_strlen(data));
+ { char *_data = mir_ptr::operator char *();
+ if (_data) SecureZeroMemory(_data, mir_strlen(_data));
}
};
class pass_ptrW : public mir_ptr<WCHAR>
{
-
public:
__inline explicit pass_ptrW() : mir_ptr(){}
__inline explicit pass_ptrW(WCHAR* _p) : mir_ptr(_p) {}
__inline ~pass_ptrW() { zero(); }
+ __inline WCHAR* operator = (WCHAR *_p){ zero(); mir_ptr::operator=(_p); }
__inline void zero()
{ WCHAR *_data = mir_ptr::operator WCHAR *();
if (_data) SecureZeroMemory(_data, mir_wstrlen(_data)*sizeof(WCHAR));