Rob Shearman : rpcrt4: Set fMustAlloc to TRUE when unmarshalling an object pointer.

Alexandre Julliard julliard at winehq.org
Wed Dec 5 06:57:02 CST 2007


Module: wine
Branch: master
Commit: 17132f7e1f8c05f3c20c8a85fb7385bccff86ec0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=17132f7e1f8c05f3c20c8a85fb7385bccff86ec0

Author: Rob Shearman <rob at codeweavers.com>
Date:   Wed Dec  5 11:56:14 2007 +0000

rpcrt4: Set fMustAlloc to TRUE when unmarshalling an object pointer.

---

 dlls/rpcrt4/ndr_marshall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 781143a..3e5021a 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -988,7 +988,7 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
     if (!fMustAlloc && pSrcPointer)
     {
         FIXME("free object pointer %p\n", pSrcPointer);
-        pSrcPointer = NULL;
+        fMustAlloc = TRUE;
     }
     if (pointer_id)
       pointer_needs_unmarshaling = 1;




More information about the wine-cvs mailing list