Use the msvc way to return a struct, fixing wierd problems.

This commit is contained in:
Greg Turner 2002-10-16 18:51:11 +00:00 committed by Alexandre Julliard
parent b5960a175f
commit 686b845593
2 changed files with 7 additions and 8 deletions

View File

@ -39,7 +39,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DEFAULT_DEBUG_CHANNEL(ole);
LONG_PTR RPCRT4_NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pFormat, va_list args) LONG_PTR /* CLIENT_CALL_RETURN */ RPCRT4_NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pFormat, va_list args)
{ {
FIXME("(%p,%p,...)\n", pStubDesc, pFormat); FIXME("(%p,%p,...)\n", pStubDesc, pFormat);
return 0; return 0;
@ -48,17 +48,16 @@ LONG_PTR RPCRT4_NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pFormat
/*********************************************************************** /***********************************************************************
* NdrClientCall2 [RPCRT4.@] * NdrClientCall2 [RPCRT4.@]
*/ */
CLIENT_CALL_RETURN WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, LONG_PTR /* CLIENT_CALL_RETURN */ WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc,
PFORMAT_STRING pFormat, PFORMAT_STRING pFormat, ...)
...)
{ {
CLIENT_CALL_RETURN ret; LONG_PTR ret;
va_list args; va_list args;
TRACE("(%p,%p,...)\n", pStubDesc, pFormat); TRACE("(%p,%p,...)\n", pStubDesc, pFormat);
va_start(args, pFormat); va_start(args, pFormat);
ret = (CLIENT_CALL_RETURN)RPCRT4_NdrClientCall2(pStubDesc, pFormat, args); ret = RPCRT4_NdrClientCall2(pStubDesc, pFormat, args);
va_end(args); va_end(args);
return ret; return ret;
} }

View File

@ -276,9 +276,9 @@ RPCRTAPI void RPC_ENTRY
RPCRTAPI void RPC_ENTRY RPCRTAPI void RPC_ENTRY
NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat ); NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
CLIENT_CALL_RETURN RPC_VAR_ENTRY LONG_PTR /* CLIENT_CALL_RETURN */ RPC_VAR_ENTRY
NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... ); NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
CLIENT_CALL_RETURN RPC_VAR_ENTRY LONG_PTR /* CLIENT_CALL_RETURN */ RPC_VAR_ENTRY
NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... ); NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
RPCRTAPI void RPC_ENTRY RPCRTAPI void RPC_ENTRY