[ros-diffs] [ekohl] 17313: The RpcFinally block must always be executed. Otherwise, RPC code will leak allocated buffer memory.

ekohl at svn.reactos.com ekohl at svn.reactos.com
Thu Aug 11 22:45:52 CEST 2005


The RpcFinally block must always be executed. Otherwise, RPC code will
leak allocated buffer memory.
Modified: trunk/reactos/w32api/include/rpc.h
  _____  

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()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050811/ae9d5115/attachment.html


More information about the Ros-diffs mailing list