Fix crash.

Thanks wizark952.
merge-requests/48/head
Mr_Goldberg 2021-12-22 13:32:35 -05:00
parent 1bd90756d1
commit 9eb7066098
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 2 additions and 2 deletions

View File

@ -175,10 +175,10 @@ ESteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall )
bool GetAPICallResult( SteamAPICall_t hSteamAPICall, void *pCallback, int cubCallback, int iCallbackExpected, bool *pbFailed ) bool GetAPICallResult( SteamAPICall_t hSteamAPICall, void *pCallback, int cubCallback, int iCallbackExpected, bool *pbFailed )
{ {
PRINT_DEBUG("GetAPICallResult %llu %i %i\n", hSteamAPICall, cubCallback, iCallbackExpected); PRINT_DEBUG("GetAPICallResult %llu %i %i %p\n", hSteamAPICall, cubCallback, iCallbackExpected, pbFailed);
std::lock_guard<std::recursive_mutex> lock(global_mutex); std::lock_guard<std::recursive_mutex> lock(global_mutex);
if (callback_results->callback_result(hSteamAPICall, pCallback, cubCallback)) { if (callback_results->callback_result(hSteamAPICall, pCallback, cubCallback)) {
*pbFailed = false; if (pbFailed) *pbFailed = false;
PRINT_DEBUG("GetAPICallResult Succeeded\n"); PRINT_DEBUG("GetAPICallResult Succeeded\n");
return true; return true;
} else { } else {