2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Fix NetCliAuthFileRequest Regression introduced by 6e56447

Our data fields have to be the same as their size on the wire. Ugh.
This commit is contained in:
2013-11-25 20:13:38 -05:00
parent 6005f78cbf
commit efec679e1f

View File

@ -3588,10 +3588,13 @@ bool FileDownloadRequestTrans::Send () {
if (!AcquireConn())
return false;
wchar_t filename[MAX_PATH];
wcsncpy(filename, m_filename.AsString().ToWchar(), arrsize(filename));
const uintptr_t msg[] = {
kCli2Auth_FileDownloadRequest,
m_transId,
reinterpret_cast<uintptr_t>(m_filename.AsString().ToWchar().GetData()),
reinterpret_cast<uintptr_t>(filename),
};
m_conn->Send(msg, arrsize(msg));