blob: b8793b4c3c8e3c9ce21633f5ba5e387bcf5dc2dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "JSAPI_DispatchTable.h"
#include <strsafe.h>
JSAPI::Dispatcher::Dispatcher(const wchar_t *_name, DISPID _id, IDispatch *_object)
:id(_id), object(_object)
{
memset(name, 0, sizeof(name));
if (NULL != object)
object->AddRef();
StringCchCopyW(name, ARRAYSIZE(name), _name);
}
JSAPI::Dispatcher::~Dispatcher()
{
if (NULL != object)
{
object->Release();
object = NULL;
}
}
|