game and db is building on windows
This commit is contained in:
@@ -241,7 +241,7 @@ void LoginFailure(LPDESC d, const char * c_pszStatus)
|
||||
TPacketGCLoginFailure failurePacket;
|
||||
|
||||
failurePacket.header = HEADER_GC_LOGIN_FAILURE;
|
||||
strlcpy(failurePacket.szStatus, c_pszStatus, sizeof(failurePacket.szStatus));
|
||||
std::strncpy(failurePacket.szStatus, c_pszStatus, sizeof(failurePacket.szStatus));
|
||||
|
||||
d->Packet(&failurePacket, sizeof(failurePacket));
|
||||
}
|
||||
@@ -403,7 +403,7 @@ int CInputHandshake::Analyze(LPDESC d, BYTE bHeader, const char * c_pData)
|
||||
p.dwID = (DWORD)(atoi(msg.c_str()));
|
||||
snprintf(szTmp,sizeof(szTmp),"Sent to DB cache to delete ItemAward, id: %d",p.dwID);
|
||||
//sys_log(0,"%d",p.dwID);
|
||||
// strlcpy(p.login, msg.c_str(), sizeof(p.login));
|
||||
// std::strncpy(p.login, msg.c_str(), sizeof(p.login));
|
||||
db_clientdesc->DBPacket(HEADER_GD_DELETE_AWARDID, 0, &p, sizeof(p));
|
||||
stResult += szTmp;
|
||||
}
|
||||
@@ -454,14 +454,14 @@ dev_log(LOG_DEB0, "DC : '%s'", msg.c_str());
|
||||
TPacketGGDisconnect pgg;
|
||||
|
||||
pgg.bHeader = HEADER_GG_DISCONNECT;
|
||||
strlcpy(pgg.szLogin, msg.c_str(), sizeof(pgg.szLogin));
|
||||
std::strncpy(pgg.szLogin, msg.c_str(), sizeof(pgg.szLogin));
|
||||
|
||||
P2P_MANAGER::instance().Send(&pgg, sizeof(TPacketGGDisconnect));
|
||||
|
||||
// delete login key
|
||||
{
|
||||
TPacketDC p;
|
||||
strlcpy(p.login, msg.c_str(), sizeof(p.login));
|
||||
std::strncpy(p.login, msg.c_str(), sizeof(p.login));
|
||||
db_clientdesc->DBPacket(HEADER_GD_DC, 0, &p, sizeof(p));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user