[ADD] Add assert.

This commit is contained in:
Don Ho 2015-08-25 09:31:41 +02:00
parent dc4897c8f2
commit 6db831fcd0

View File

@ -68,7 +68,10 @@ public:
::GetWindowText(_hSelf, temp, MAX_PATH); ::GetWindowText(_hSelf, temp, MAX_PATH);
_pluginName = temp; _pluginName = temp;
// user information // user information
assert(data->hClient != nullptr);
data->hClient = _hSelf; data->hClient = _hSelf;
assert(data->pszName != nullptr);
data->pszName = (TCHAR *)_pluginName.c_str(); data->pszName = (TCHAR *)_pluginName.c_str();
// supported features by plugin // supported features by plugin