Push strings instead of arrays to not have to deal with odd cell size calculations.

This commit is contained in:
Ryan Stecker
2014-04-05 14:16:39 -05:00
parent a45e33863b
commit 913d4b31f2
2 changed files with 7 additions and 6 deletions
+3 -1
View File
@@ -84,7 +84,9 @@ EBeginAuthSessionResult SteamWorksGSHooks::BeginAuthSession(const void *pAuthTic
{
if (this->pOBAS->GetFunctionCount() != 0)
{
this->pOBAS->PushArray(pAuthTicket, cbAuthTicket);
char *pszAuthTicket = reinterpret_cast<char *>(const_cast<void *>(pAuthTicket));
this->pOBAS->PushStringEx(pszAuthTicket, cbAuthTicket, SM_PARAM_STRING_BINARY | SM_PARAM_STRING_COPY, 0);
this->pOBAS->PushCell(cbAuthTicket);
this->pOBAS->PushCell(steamID.GetAccountID());
this->pOBAS->Execute(NULL);