diff options
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r-- | include/m_system_cpp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index e595583b9d..9a33d2a712 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -96,16 +96,16 @@ public: }
};
-class pass_ptrW : public mir_ptr<WCHAR>
+class pass_ptrW : public mir_ptr<wchar_t>
{
public:
__inline explicit pass_ptrW() : mir_ptr(){}
- __inline explicit pass_ptrW(WCHAR* _p) : mir_ptr(_p) {}
+ __inline explicit pass_ptrW(wchar_t* _p) : mir_ptr(_p) {}
__inline ~pass_ptrW() { zero(); }
- __inline WCHAR* operator = (WCHAR *_p){ zero(); return mir_ptr::operator=(_p); }
+ __inline wchar_t* operator = (wchar_t *_p){ zero(); return mir_ptr::operator=(_p); }
__inline void zero()
{
- if (data) SecureZeroMemory(data, mir_wstrlen(data)*sizeof(WCHAR));
+ if (data) SecureZeroMemory(data, mir_wstrlen(data)*sizeof(wchar_t));
}
};
|