The RpcFinally block must always be executed. Otherwise, RPC code will leak allocated buffer memory.
Modified: trunk/reactos/w32api/include/rpc.h
--- trunk/reactos/w32api/include/rpc.h 2005-08-11 20:44:04 UTC (rev 17312) +++ trunk/reactos/w32api/include/rpc.h 2005-08-11 20:45:41 UTC (rev 17313) @@ -59,7 +59,7 @@
#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()