Marshal enums.

This commit is contained in:
Huw Davies 2005-10-31 21:05:00 +00:00 committed by Alexandre Julliard
parent 82aa918a30
commit c7462e431f
1 changed files with 4 additions and 0 deletions

View File

@ -1404,6 +1404,7 @@ unsigned char * WINAPI ComplexMarshall(PMIDL_STUB_MESSAGE pStubMsg,
break; break;
case RPC_FC_LONG: case RPC_FC_LONG:
case RPC_FC_ULONG: case RPC_FC_ULONG:
case RPC_FC_ENUM32:
TRACE("long=%ld <= %p\n", *(DWORD*)pMemory, pMemory); TRACE("long=%ld <= %p\n", *(DWORD*)pMemory, pMemory);
memcpy(pStubMsg->Buffer, pMemory, 4); memcpy(pStubMsg->Buffer, pMemory, 4);
pStubMsg->Buffer += 4; pStubMsg->Buffer += 4;
@ -1465,6 +1466,7 @@ unsigned char * WINAPI ComplexUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
break; break;
case RPC_FC_LONG: case RPC_FC_LONG:
case RPC_FC_ULONG: case RPC_FC_ULONG:
case RPC_FC_ENUM32:
memcpy(pMemory, pStubMsg->Buffer, 4); memcpy(pMemory, pStubMsg->Buffer, 4);
TRACE("long=%ld => %p\n", *(DWORD*)pMemory, pMemory); TRACE("long=%ld => %p\n", *(DWORD*)pMemory, pMemory);
pStubMsg->Buffer += 4; pStubMsg->Buffer += 4;
@ -1525,6 +1527,7 @@ unsigned char * WINAPI ComplexBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
break; break;
case RPC_FC_LONG: case RPC_FC_LONG:
case RPC_FC_ULONG: case RPC_FC_ULONG:
case RPC_FC_ENUM32:
pStubMsg->BufferLength += 4; pStubMsg->BufferLength += 4;
pMemory += 4; pMemory += 4;
break; break;
@ -1578,6 +1581,7 @@ unsigned char * WINAPI ComplexFree(PMIDL_STUB_MESSAGE pStubMsg,
break; break;
case RPC_FC_LONG: case RPC_FC_LONG:
case RPC_FC_ULONG: case RPC_FC_ULONG:
case RPC_FC_ENUM32:
pMemory += 4; pMemory += 4;
break; break;
case RPC_FC_POINTER: case RPC_FC_POINTER: