rpc_H_PL4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



relative to rpc_H_PL2 + Marcus Meissner's "PPC fix 2"

LICENSE: X11

CHANGELOG:

* dlls/rpcrt4: ndr_marshall.c
- rename the *_32_READ macros to *_UINT32_READ for clarity

-- 
gmt

"The purpose of government is to rein in the rights of the people"
 --President Bill Clinton, MTV interview, 1993
diff -ur -x CVS -x 'bigdif*' ../wine.test/dlls/rpcrt4/ndr_marshall.c ./dlls/rpcrt4/ndr_marshall.c
--- ../wine.test/dlls/rpcrt4/ndr_marshall.c	2002-10-30 18:45:48.000000000 -0600
+++ ./dlls/rpcrt4/ndr_marshall.c	2002-10-30 12:33:45.000000000 -0600
@@ -43,21 +43,21 @@
 #define BUFFER_PARANOIA 20
 
 #if defined(__i386__)
-  #define LITTLE_ENDIAN_32_WRITE(pchar, word32) \
+  #define LITTLE_ENDIAN_UINT32_WRITE(pchar, word32) \
     (*((UINT32 *)(pchar)) = (word32))
 
-  #define LITTLE_ENDIAN_32_READ(pchar) \
+  #define LITTLE_ENDIAN_UINT32_READ(pchar) \
     (*((UINT32 *)(pchar)))
 #else
   /* these would work for i386 too, but less efficient */
-  #define LITTLE_ENDIAN_32_WRITE(pchar, word32) \
+  #define LITTLE_ENDIAN_UINT32_WRITE(pchar, word32) \
     (*(pchar)     = LOBYTE(LOWORD(word32)), \
      *((pchar)+1) = HIBYTE(LOWORD(word32)), \
      *((pchar)+2) = LOBYTE(HIWORD(word32)), \
      *((pchar)+3) = HIBYTE(HIWORD(word32)), \
      (word32)) /* allow as r-value */
 
-  #define LITTLE_ENDIAN_32_READ(pchar) \
+  #define LITTLE_ENDIAN_UINT32_READ(pchar) \
     (MAKELONG( \
       MAKEWORD(*(pchar), *((pchar)+1)) \
       MAKEWORD(*((pchar)+2), *((pchar)+3))))
@@ -97,9 +97,9 @@
     assert( (pStubMsg->BufferLength > (len + 13)) && (pStubMsg->Buffer != NULL) );
     c = pStubMsg->Buffer;
     memset(c, 0, 12);
-    LITTLE_ENDIAN_32_WRITE(c, len + 1); /* max length: strlen + 1 (for '\0') */
+    LITTLE_ENDIAN_UINT32_WRITE(c, len + 1); /* max length: strlen + 1 (for '\0') */
     c += 8;                             /* offset: 0 */
-    LITTLE_ENDIAN_32_WRITE(c, len + 1); /* actual length: (same) */
+    LITTLE_ENDIAN_UINT32_WRITE(c, len + 1); /* actual length: (same) */
     c += 4;
     for (i = 0; i <= len; i++)
       *(c++) = *(pszMessage++);         /* the string itself */
@@ -143,7 +143,7 @@
   assert(pStubMsg && pFormat);
 
   if (*pFormat == RPC_FC_C_CSTRING) {
-    rslt = LITTLE_ENDIAN_32_READ(pStubMsg->Buffer); /* maxlen */
+    rslt = LITTLE_ENDIAN_UINT32_READ(pStubMsg->Buffer); /* maxlen */
   } else {
     ERR("Unhandled string type: %#x\n", *pFormat);
     /* FIXME: raise an exception */
@@ -195,9 +195,9 @@
     char *c = *ppMemory;
 
     pStubMsg->Buffer += 4;
-    ofs = LITTLE_ENDIAN_32_READ(pStubMsg->Buffer);
+    ofs = LITTLE_ENDIAN_UINT32_READ(pStubMsg->Buffer);
     pStubMsg->Buffer += 4;
-    len = LITTLE_ENDIAN_32_READ(pStubMsg->Buffer);
+    len = LITTLE_ENDIAN_UINT32_READ(pStubMsg->Buffer);
     pStubMsg->Buffer += 4;
 
     c += ofs; /* presumably this will always be zero, otherwise the string is no good */

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux