Module: wine Branch: master Commit: 8b8795136d21bb179858b2cf8180830b0d6da95c URL: http://source.winehq.org/git/wine.git/?a=commit;h=8b8795136d21bb179858b2cf81...
Author: Rob Shearman rob@codeweavers.com Date: Sat Dec 29 12:13:48 2007 +0000
rpcss: Initialise some out-only parameters that aren't initialised by the generated RPC code.
---
programs/rpcss/irotp.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/programs/rpcss/irotp.c b/programs/rpcss/irotp.c index 7832ac7..21ede32 100644 --- a/programs/rpcss/irotp.c +++ b/programs/rpcss/irotp.c @@ -240,6 +240,8 @@ HRESULT IrotGetObject(
WINE_TRACE("%p\n", moniker_data);
+ *cookie = 0; + EnterCriticalSection(&csRunningObjectTable);
LIST_FOR_EACH_ENTRY(rot_entry, &RunningObjectTable, const struct rot_entry, entry) @@ -304,6 +306,8 @@ HRESULT IrotGetTimeOfLastChange(
WINE_TRACE("%p\n", moniker_data);
+ memset(time, 0, sizeof(*time)); + EnterCriticalSection(&csRunningObjectTable); LIST_FOR_EACH_ENTRY(rot_entry, &RunningObjectTable, const struct rot_entry, entry) {