Fix error return of FormatNativeString. (#1613)

This commit is contained in:
David Anderson 2021-10-26 19:31:58 -10:00 committed by Your Name
parent 377888276e
commit a68ff2a587

View File

@ -414,7 +414,7 @@ static cell_t FormatNativeString(IPluginContext *pContext, const cell_t *params)
DetectExceptions eh(pContext);
written = atcprintf(output_buffer, maxlen, format_buffer, s_curcaller, s_curparams, &var_param);
if (eh.HasException())
return 0;
return pContext->GetLastNativeError();
}
cell_t *addr;