From cee14f1ccdc04f12d47b74d07d3b0dd003f31367 Mon Sep 17 00:00:00 2001 From: micio Date: Mon, 20 Sep 2010 12:34:17 +0000 Subject: [PATCH] Bazaar/Protect : fix for MSC git-svn-id: svn://ultimatepp.org/upp/trunk@2713 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/Protect/Protect.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bazaar/Protect/Protect.h b/bazaar/Protect/Protect.h index c12996493..9807fbd7e 100644 --- a/bazaar/Protect/Protect.h +++ b/bazaar/Protect/Protect.h @@ -92,12 +92,15 @@ using namespace Upp; _PROTECT_START_MARKER \ __asm next: \ } \ - __start: + __start: \ + { \ #define PROTECT_END_FUNC \ - return; \ + } \ __end: \ - _PROTECT_END_MARKER; + __asm { __asm jmp next2 } \ + _PROTECT_END_MARKER; \ + __asm next2: #endif