CLSIDFromString endian fix

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

 



ChangeLog
 - Fixed CLSIDFromString to work on big endian platforms

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada

*** wine-20020605/dlls/ole32/compobj.c       Fri Jun 14 13:19:54 2002
--- wine/dlls/ole32/compobj.c   Fri Jun 14 13:19:27 2002
***************
*** 494,500 ****
--- 494,504 ----
  
    s++;        /* skip leading brace  */
    for (i = 0; i < 4; i++) {
+ #ifdef WORDS_BIGENDIAN
+     p[i]     = table[*s]<<4 | table[*(s+1)];
+ #else
      p[3 - i] = table[*s]<<4 | table[*(s+1)];
+ #endif
      s += 2;
    }
    p += 4;
***************
*** 501,507 ****
--- 505,515 ----
    s++;        /* skip - */
  
    for (i = 0; i < 2; i++) {
+ #ifdef WORDS_BIGENDIAN
+     p[i]   = table[*s]<<4 | table[*(s+1)];
+ #else
      p[1-i] = table[*s]<<4 | table[*(s+1)];
+ #endif
      s += 2;
    }
    p += 2;
***************
*** 508,514 ****
--- 516,526 ----
    s++;        /* skip - */
  
    for (i = 0; i < 2; i++) {
+ #ifdef WORDS_BIGENDIAN
+     p[i]   = table[*s]<<4 | table[*(s+1)];
+ #else
      p[1-i] = table[*s]<<4 | table[*(s+1)];
+ #endif
      s += 2;
    }
    p += 2;

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

  Powered by Linux