From efec679e1fe0d690eb5493c7285f1bfec530b872 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 25 Nov 2013 20:13:38 -0500 Subject: [PATCH] Fix NetCliAuthFileRequest Regression introduced by 6e56447 Our data fields have to be the same as their size on the wire. Ugh. --- Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp index a0d8eda9..986a1530 100644 --- a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp +++ b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp @@ -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(m_filename.AsString().ToWchar().GetData()), + reinterpret_cast(filename), }; m_conn->Send(msg, arrsize(msg));