[OLE #133] Marshal enums

Huw D M Davies h.davies1 at physics.ox.ac.uk
Mon Oct 31 10:27:33 CST 2005


        Huw Davies <huw at codeweavers.com>
        Marshal enums.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/rpcrt4/ndr_marshall.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/ndr_marshall.c,v
retrieving revision 1.29
diff -u -p -r1.29 ndr_marshall.c
--- dlls/rpcrt4/ndr_marshall.c	8 Sep 2005 11:02:38 -0000	1.29
+++ dlls/rpcrt4/ndr_marshall.c	31 Oct 2005 16:25:13 -0000
@@ -1404,6 +1404,7 @@ unsigned char * WINAPI ComplexMarshall(P
       break;
     case RPC_FC_LONG:
     case RPC_FC_ULONG:
+    case RPC_FC_ENUM32:
       TRACE("long=%ld <= %p\n", *(DWORD*)pMemory, pMemory);
       memcpy(pStubMsg->Buffer, pMemory, 4);
       pStubMsg->Buffer += 4;
@@ -1465,6 +1466,7 @@ unsigned char * WINAPI ComplexUnmarshall
       break;
     case RPC_FC_LONG:
     case RPC_FC_ULONG:
+    case RPC_FC_ENUM32:
       memcpy(pMemory, pStubMsg->Buffer, 4);
       TRACE("long=%ld => %p\n", *(DWORD*)pMemory, pMemory);
       pStubMsg->Buffer += 4;
@@ -1525,6 +1527,7 @@ unsigned char * WINAPI ComplexBufferSize
       break;
     case RPC_FC_LONG:
     case RPC_FC_ULONG:
+    case RPC_FC_ENUM32:
       pStubMsg->BufferLength += 4;
       pMemory += 4;
       break;
@@ -1578,6 +1581,7 @@ unsigned char * WINAPI ComplexFree(PMIDL
       break;
     case RPC_FC_LONG:
     case RPC_FC_ULONG:
+    case RPC_FC_ENUM32:
       pMemory += 4;
       break;
     case RPC_FC_POINTER:



More information about the wine-patches mailing list