Module: wine
Branch: refs/heads/master
Commit: e298538459acf2d5c96f762a1f863f286b375891
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=e298538459acf2d5c96f762…
Author: Robert Shearman <rob(a)codeweavers.com>
Date: Tue Jan 10 19:59:26 2006 +0100
rpcrt4: Don't release the interface pointer on failure.
Don't release the interface pointer on failure since we are not the
ones that allocated it. It is the caller's responsability to call
NdrInterfacePointerFree, where the freeing is supposed to happen.
---
dlls/rpcrt4/ndr_ole.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/rpcrt4/ndr_ole.c b/dlls/rpcrt4/ndr_ole.c
index 0919f9f..5d7cccf 100644
--- a/dlls/rpcrt4/ndr_ole.c
+++ b/dlls/rpcrt4/ndr_ole.c
@@ -261,10 +261,8 @@ unsigned char * WINAPI NdrInterfacePoint
pStubMsg->dwDestContext, pStubMsg->pvDestContext,
MSHLFLAGS_NORMAL);
IStream_Release(stream);
- if (FAILED(hr)) {
- IUnknown_Release((LPUNKNOWN)pMemory);
+ if (FAILED(hr))
RpcRaiseException(hr);
- }
}
}
return NULL;
Module: wine
Branch: refs/heads/master
Commit: 90e38659291dc475f3340427580a170408289861
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=90e38659291dc475f334042…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Tue Jan 10 17:51:22 2006 +0100
ntdll: NtRaiseException doesn't need to be a register function.
Moved common code between NtRaiseException and RtlRaiseException to a
separate raise_exception function.
---
dlls/ntdll/exception.c | 199 ++++++++++++++++++++++++++----------------------
dlls/ntdll/ntdll.spec | 2
include/winternl.h | 2
3 files changed, 110 insertions(+), 93 deletions(-)