mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-28 03:14:15 +08:00
fix a scenario where call results might not be triggered in steam_http if the function arg was null
This commit is contained in:
parent
c207359bf7
commit
7b9bc9b3fe
@ -180,7 +180,9 @@ void Steam_HTTP::online_http_request(Steam_Http_Request *request, SteamAPICall_t
|
||||
data.m_eStatusCode = k_EHTTPStatusCode200OK;
|
||||
}
|
||||
|
||||
if (pCallHandle) *pCallHandle = callback_results->addCallResult(data.k_iCallback, &data, sizeof(data), 0.1);
|
||||
auto callres = callback_results->addCallResult(data.k_iCallback, &data, sizeof(data), 0.1);
|
||||
if (pCallHandle) *pCallHandle = callres;
|
||||
|
||||
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data), 0.1);
|
||||
};
|
||||
|
||||
@ -356,7 +358,9 @@ bool Steam_HTTP::SendHTTPRequest( HTTPRequestHandle hRequest, SteamAPICall_t *pC
|
||||
data.m_eStatusCode = k_EHTTPStatusCode200OK;
|
||||
}
|
||||
|
||||
if (pCallHandle) *pCallHandle = callback_results->addCallResult(data.k_iCallback, &data, sizeof(data), 0.1);
|
||||
auto callres = callback_results->addCallResult(data.k_iCallback, &data, sizeof(data), 0.1);
|
||||
if (pCallHandle) *pCallHandle = callres;
|
||||
|
||||
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data), 0.1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user