Changeset 7508 for trunk/src/ole32/compobj.c
- Timestamp:
- Nov 30, 2001, 8:02:33 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/compobj.c
r7502 r7508 37 37 #ifdef __WIN32OS2__ 38 38 #include <heapstring.h> 39 40 #undef FIXME41 #undef TRACE42 #ifdef DEBUG43 // PH 2001-11-3044 // this macro definition causes the control leave the scope of a45 // non-curly-braced preceeding if statement. Therefore,46 // if (p!=NULL)47 // TRACE("p->a=%d", p->a)48 // crashes.49 //50 // !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT51 // !!! ARE PUT INTO CURLY BRACES52 #define TRACE WriteLog("OLE32: %s", __FUNCTION__); WriteLog53 #define FIXME WriteLog("FIXME OLE32: %s", __FUNCTION__); WriteLog54 #else55 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)56 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)57 #endif58 39 #endif 59 40 … … 446 427 BYTE *p; 447 428 int i; 448 449 450 #ifdef __WIN32OS2__451 // Note: only setup the lookup table once!452 static BOOL fCLSIDTableInitialized = FALSE;453 static BYTE table[256];454 #else455 429 BYTE table[256]; 456 #endif457 430 458 431 if (!s) 459 432 s = "{00000000-0000-0000-0000-000000000000}"; 460 433 else { /* validate the CLSID string */ 461 462 #ifdef __WIN32OS2__ 463 // PH: all other characters are tested up to the 38th 464 // and cannot be zero so this test should be sufficient. 465 if (s[38] != 0) 466 #else 467 if (strlen(s) != 38) 468 #endif 434 435 if (strlen(s) != 38) 469 436 return CO_E_CLASSSTRING; 470 437 … … 484 451 485 452 TRACE("%s -> %p\n", s, id); 486 487 488 #ifdef __WIN32OS2__ 489 if (fCLSIDTableInitialized == FALSE) 490 { 491 fCLSIDTableInitialized = TRUE; 492 #endif 493 494 /* quick lookup table */ 495 memset(table, 0, 256); 496 497 for (i = 0; i < 10; i++) { 498 table['0' + i] = i; 499 } 500 for (i = 0; i < 6; i++) { 501 table['A' + i] = i+10; 502 table['a' + i] = i+10; 503 } 504 505 #ifdef __WIN32OS2__ 506 } 507 #endif 453 454 /* quick lookup table */ 455 memset(table, 0, 256); 456 457 for (i = 0; i < 10; i++) { 458 table['0' + i] = i; 459 } 460 for (i = 0; i < 6; i++) { 461 table['A' + i] = i+10; 462 table['a' + i] = i+10; 463 } 508 464 509 465 /* in form {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} */ … … 1502 1458 1503 1459 if (pServerInfo!=NULL) 1504 {1505 1460 FIXME("() non-NULL pServerInfo not supported!\n"); 1506 }1507 1461 1508 1462 /*
Note:
See TracChangeset
for help on using the changeset viewer.