From 5811c5b29feb9c0b8cebc932794d35e2368494d7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 16 Apr 2007 16:53:48 +0000 Subject: [PATCH] fixed a re-entrancy bug --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40705 --- core/smn_fakenatives.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/smn_fakenatives.cpp b/core/smn_fakenatives.cpp index 0ab4ee23..8df20220 100644 --- a/core/smn_fakenatives.cpp +++ b/core/smn_fakenatives.cpp @@ -79,10 +79,10 @@ cell_t FakeNativeRouter(IPluginContext *pContext, const cell_t *params, void *pD } /* Restore everything from the stack if necessary */ + s_curnative = pSaveNative; + s_curcaller = pSaveCaller; if (pSaveNative != NULL) { - s_curnative = pSaveNative; - s_curcaller = pSaveCaller; for (cell_t i=0; i<=save_params[0]; i++) { s_curparams[i] = save_params[i];