From 7b869f437fca7076ac03b05dba911cdfe62151c5 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 11 Aug 2005 20:45:41 +0000 Subject: [PATCH] The RpcFinally block must always be executed. Otherwise, RPC code will leak allocated buffer memory. svn path=/trunk/; revision=17313 --- reactos/w32api/include/rpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/w32api/include/rpc.h b/reactos/w32api/include/rpc.h index 24f1db1a182..966a85d69ad 100644 --- a/reactos/w32api/include/rpc.h +++ b/reactos/w32api/include/rpc.h @@ -59,7 +59,7 @@ typedef long RPC_STATUS; #define RpcExcept(x) } else { #define RpcEndExcept } #define RpcTryFinally if (1) { -#define RpcFinally } else { +#define RpcFinally } if (1) { #define RpcEndFinally } #define RpcExceptionCode() 0 #define RpcAbnormalTermination() AbnormalTermination()