summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-28 02:41:01 +0100
committerHaru <haru@dotalux.com>2016-04-30 15:57:48 +0200
commitfa2f2f4f2cba8cfb2d6d950c69d7c4348ba66205 (patch)
treeff5db6f34cd3ad2aa67aa5ddc07c00f48045a2d3 /src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
parent2788afc3dd5d825246f13189b14353b0f069e7e3 (diff)
downloadhercules-fa2f2f4f2cba8cfb2d6d950c69d7c4348ba66205.tar.gz
hercules-fa2f2f4f2cba8cfb2d6d950c69d7c4348ba66205.tar.bz2
hercules-fa2f2f4f2cba8cfb2d6d950c69d7c4348ba66205.tar.xz
hercules-fa2f2f4f2cba8cfb2d6d950c69d7c4348ba66205.zip
HPM Hooks Update
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_login.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.Hooks.inc27
1 files changed, 9 insertions, 18 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
index 91909b819..bedadf9e3 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
@@ -562,8 +562,7 @@ struct DBMap* HP_DB_alloc(const char *file, const char *func, int line, enum DBT
}
union DBKey HP_DB_i2key(int key) {
int hIndex = 0;
- union DBKey retVal___;
- memset(&retVal___, '\0', sizeof(union DBKey));
+ union DBKey retVal___ = { 0 };
if( HPMHooks.count.HP_DB_i2key_pre ) {
union DBKey (*preHookFunc) (int *key);
*HPMforce_return = false;
@@ -590,8 +589,7 @@ union DBKey HP_DB_i2key(int key) {
}
union DBKey HP_DB_ui2key(unsigned int key) {
int hIndex = 0;
- union DBKey retVal___;
- memset(&retVal___, '\0', sizeof(union DBKey));
+ union DBKey retVal___ = { 0 };
if( HPMHooks.count.HP_DB_ui2key_pre ) {
union DBKey (*preHookFunc) (unsigned int *key);
*HPMforce_return = false;
@@ -618,8 +616,7 @@ union DBKey HP_DB_ui2key(unsigned int key) {
}
union DBKey HP_DB_str2key(const char *key) {
int hIndex = 0;
- union DBKey retVal___;
- memset(&retVal___, '\0', sizeof(union DBKey));
+ union DBKey retVal___ = { 0 };
if( HPMHooks.count.HP_DB_str2key_pre ) {
union DBKey (*preHookFunc) (const char *key);
*HPMforce_return = false;
@@ -646,8 +643,7 @@ union DBKey HP_DB_str2key(const char *key) {
}
union DBKey HP_DB_i642key(int64 key) {
int hIndex = 0;
- union DBKey retVal___;
- memset(&retVal___, '\0', sizeof(union DBKey));
+ union DBKey retVal___ = { 0 };
if( HPMHooks.count.HP_DB_i642key_pre ) {
union DBKey (*preHookFunc) (int64 *key);
*HPMforce_return = false;
@@ -674,8 +670,7 @@ union DBKey HP_DB_i642key(int64 key) {
}
union DBKey HP_DB_ui642key(uint64 key) {
int hIndex = 0;
- union DBKey retVal___;
- memset(&retVal___, '\0', sizeof(union DBKey));
+ union DBKey retVal___ = { 0 };
if( HPMHooks.count.HP_DB_ui642key_pre ) {
union DBKey (*preHookFunc) (uint64 *key);
*HPMforce_return = false;
@@ -702,8 +697,7 @@ union DBKey HP_DB_ui642key(uint64 key) {
}
struct DBData HP_DB_i2data(int data) {
int hIndex = 0;
- struct DBData retVal___;
- memset(&retVal___, '\0', sizeof(struct DBData));
+ struct DBData retVal___ = { 0 };
if( HPMHooks.count.HP_DB_i2data_pre ) {
struct DBData (*preHookFunc) (int *data);
*HPMforce_return = false;
@@ -730,8 +724,7 @@ struct DBData HP_DB_i2data(int data) {
}
struct DBData HP_DB_ui2data(unsigned int data) {
int hIndex = 0;
- struct DBData retVal___;
- memset(&retVal___, '\0', sizeof(struct DBData));
+ struct DBData retVal___ = { 0 };
if( HPMHooks.count.HP_DB_ui2data_pre ) {
struct DBData (*preHookFunc) (unsigned int *data);
*HPMforce_return = false;
@@ -758,8 +751,7 @@ struct DBData HP_DB_ui2data(unsigned int data) {
}
struct DBData HP_DB_ptr2data(void *data) {
int hIndex = 0;
- struct DBData retVal___;
- memset(&retVal___, '\0', sizeof(struct DBData));
+ struct DBData retVal___ = { 0 };
if( HPMHooks.count.HP_DB_ptr2data_pre ) {
struct DBData (*preHookFunc) (void *data);
*HPMforce_return = false;
@@ -3444,8 +3436,7 @@ int HP_login_waiting_disconnect_timer(int tid, int64 tick, int id, intptr_t data
}
struct DBData HP_login_create_online_user(union DBKey key, va_list args) {
int hIndex = 0;
- struct DBData retVal___;
- memset(&retVal___, '\0', sizeof(struct DBData));
+ struct DBData retVal___ = { 0 };
if( HPMHooks.count.HP_login_create_online_user_pre ) {
struct DBData (*preHookFunc) (union DBKey *key, va_list args);
*HPMforce_return = false;