From a68ff2a587df6ab0e4c6a943fe6d39ba0b0b5f56 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 26 Oct 2021 19:31:58 -1000 Subject: [PATCH] Fix error return of FormatNativeString. (#1613) --- core/logic/smn_fakenatives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/smn_fakenatives.cpp b/core/logic/smn_fakenatives.cpp index a1116a18..cbbca65e 100644 --- a/core/logic/smn_fakenatives.cpp +++ b/core/logic/smn_fakenatives.cpp @@ -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;