mirror of https://github.com/OpenVPN/openvpn-gui
fixed _tsizeof
parent
56e73300e5
commit
5b4f77a4a3
8
main.h
8
main.h
|
@ -63,12 +63,8 @@ struct security_attributes
|
||||||
SECURITY_DESCRIPTOR sd;
|
SECURITY_DESCRIPTOR sd;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Return the number of elements in an TCHAR array */
|
/* Return the number of elements in a TCHAR array */
|
||||||
static inline size_t
|
#define _tsizeof(x) (sizeof(x) / sizeof(*x))
|
||||||
_tsizeof(TCHAR x[])
|
|
||||||
{
|
|
||||||
return (sizeof(x) / sizeof(*x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* clear an object */
|
/* clear an object */
|
||||||
#define CLEAR(x) memset(&(x), 0, sizeof(x))
|
#define CLEAR(x) memset(&(x), 0, sizeof(x))
|
||||||
|
|
Loading…
Reference in New Issue