From 03dee4b07dd6fe29676f5a360254fb54e7f02a1a Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 18 Jan 2003 23:26:56 +0000 Subject: [PATCH] Use the correct ProcInfo for AddrToStr. This makes the MacTCP code work in PowerPC builds. Well, makes it not crash, anyway -- AddrToStr doesn't seem to be returning amything very useful. [originally from svn r2651] --- mac/mtcpnet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mac/mtcpnet.c b/mac/mtcpnet.c index 5c256655..f355232f 100644 --- a/mac/mtcpnet.c +++ b/mac/mtcpnet.c @@ -130,8 +130,9 @@ typedef CALLBACK_API_C(OSErr, AddrToStrProcPtr)(UInt32, unsigned long, char *); typedef STACK_UPP_TYPE(AddrToStrProcPtr) AddrToStrUPP; enum { uppAddrToStrProcInfo = kCStackBased | RESULT_SIZE(SIZE_CODE(sizeof(OSErr))) - | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(unsigned long))) - | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(char *))) + | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(UInt32))) + | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(unsigned long))) + | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(char *))) }; #define InvokeAddrToStrUPP(selector, addr, addrStr, userUPP) \ CALL_THREE_PARAMETER_UPP((userUPP), uppAddrToStrProcInfo, (selector),\