summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-07 08:02:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-07 08:02:53 +0000
commitfbd9d8a939dabfb2d0ef04081eba55c26c4f566e (patch)
treef83b1d8b1dea0bb88ff3a2b5941406b649caba32
parent6298b38266b6744d83c1bfb1801cce1b0986a4cf (diff)
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16601 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--include/m_system_cpp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h
index fd0f9df752..9ef15830bc 100644
--- a/include/m_system_cpp.h
+++ b/include/m_system_cpp.h
@@ -95,7 +95,7 @@ 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 char* operator = (char *_p){ zero(); return mir_ptr::operator=(_p); }
__inline void zero()
{ char *_data = mir_ptr::operator char *();
if (_data) SecureZeroMemory(_data, mir_strlen(_data));
@@ -108,7 +108,7 @@ 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 WCHAR* operator = (WCHAR *_p){ zero(); return mir_ptr::operator=(_p); }
__inline void zero()
{ WCHAR *_data = mir_ptr::operator WCHAR *();
if (_data) SecureZeroMemory(_data, mir_wstrlen(_data)*sizeof(WCHAR));