diff --git a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrSend.cpp b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrSend.cpp index 347e5ef4..e81b1e48 100644 --- a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrSend.cpp +++ b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrSend.cpp @@ -170,10 +170,8 @@ void plNetClientMgr::ISendCCRPetition(plCCRPetitionMsg* petMsg) std::string buf; buf.resize( size ); ram.CopyToMem( (void*)buf.data() ); - - wchar_t * wStr = StrDupToUnicode(buf.c_str()); - NetCliAuthSendCCRPetition(wStr); - free(wStr); + + NetCliAuthSendCCRPetition(buf.c_str()); } // diff --git a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp index c68c58ef..d3cdc5a0 100644 --- a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp +++ b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp @@ -5762,7 +5762,7 @@ void NetCliAuthSetRecvBufferHandler ( //============================================================================ void NetCliAuthSendCCRPetition ( - const wchar_t * petitionText + const plString& petitionText ) { hsAssert(false, "eric, implement me."); } diff --git a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.h b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.h index a3657f64..bfda8de4 100644 --- a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.h +++ b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.h @@ -575,7 +575,7 @@ void NetCliAuthChangePlayerNameRequest ( // CCRPetition //============================================================================ void NetCliAuthSendCCRPetition ( - const wchar_t * petitionText + const plString& petitionText ); //============================================================================