Changeset 7508 for trunk/src/oleaut32
- Timestamp:
- Nov 30, 2001, 8:02:33 PM (24 years ago)
- Location:
- trunk/src/oleaut32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oleaut32/olepicture.c
r7501 r7508 56 56 #endif 57 57 58 #ifdef __WIN32OS2__59 #undef FIXME60 #undef TRACE61 #ifdef DEBUG62 // PH 2001-11-3063 // this macro definition causes the control leave the scope of a64 // non-curly-braced preceeding if statement. Therefore,65 // if (p!=NULL)66 // TRACE("p->a=%d", p->a)67 // crashes.68 //69 // !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT70 // !!! ARE PUT INTO CURLY BRACES71 #define TRACE WriteLog("%s", __FUNCTION__); WriteLog72 #define FIXME WriteLog("FIXME %s", __FUNCTION__); WriteLog73 #else74 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)75 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)76 #endif77 #endif78 79 58 DEFAULT_DEBUG_CHANNEL(ole); 80 59 … … 174 153 175 154 if (pictDesc) 176 {177 // PH 2001-11-29 TRACE must be in curly braces otherwise178 // the scope of the if statement is left and we'll crash179 // on picDesc == NULL180 155 TRACE("(%p) type = %d\n", pictDesc, pictDesc->picType); 181 }182 156 183 157 /* … … 507 481 This, hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds); 508 482 if(prcWBounds) 509 {510 483 TRACE("prcWBounds (%d,%d) - (%d,%d)\n", prcWBounds->left, prcWBounds->top, 511 prcWBounds->right, prcWBounds->bottom); 512 } 484 prcWBounds->right, prcWBounds->bottom); 513 485 514 486 /* … … 851 823 } 852 824 if (xread != header[1]) 853 {854 825 FIXME("Could only read %ld of %ld bytes?\n",xread,header[1]); 855 }856 826 857 827 magic = xbuf[0] + (xbuf[1]<<8); … … 1285 1255 hr = IPicture_QueryInterface(newpic,riid,ppvObj); 1286 1256 if (hr) 1287 { 1288 FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid)); 1289 } 1257 FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid)); 1290 1258 IPicture_Release(newpic); 1291 1259 return hr; -
trunk/src/oleaut32/typelib.c
r7502 r7508 68 68 #ifdef __WIN32OS2__ 69 69 #include <neexe.h> 70 #undef FIXME71 #undef TRACE72 #ifdef DEBUG73 // PH 2001-11-3074 // this macro definition causes the control leave the scope of a75 // non-curly-braced preceeding if statement. Therefore,76 // if (p!=NULL)77 // TRACE("p->a=%d", p->a)78 // crashes.79 //80 // !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT81 // !!! ARE PUT INTO CURLY BRACES82 #define TRACE WriteLog("OLEAUT32: %s", __FUNCTION__); WriteLog83 #define FIXME WriteLog("OLEAUT32: FIXME %s", __FUNCTION__); WriteLog84 #else85 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)86 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)87 #endif88 70 #endif 89 71 … … 2374 2356 2375 2357 name += SLTG_ReadStringA(name, &refname); 2376 if(sscanf(refname, "*\\R%x*#%x", &lib_offs, &type_num) != 2) 2377 { 2378 FIXME("Can't sscanf ref\n"); 2379 } 2358 if(sscanf(refname, "*\\R%x*#%x", &lib_offs, &type_num) != 2) 2359 FIXME("Can't sscanf ref\n"); 2380 2360 if(lib_offs != 0xffff) { 2381 2361 TLBImpLib **import = &pTI->pTypeLib->pImpLibs; … … 2403 2383 } 2404 2384 len = strlen(fname); 2405 if(fname[len-1] != '#') 2406 { 2407 FIXME("fname = %s\n", fname); 2408 } 2385 if(fname[len-1] != '#') 2386 FIXME("fname = %s\n", fname); 2409 2387 fname[len-1] = '\0'; 2410 2388 (*import)->name = TLB_MultiByteToBSTR(fname); … … 2421 2399 } 2422 2400 if((BYTE)*name != SLTG_REF_MAGIC) 2423 {2424 2401 FIXME("End of ref block magic = %x\n", *name); 2425 }2426 2402 dump_TLBRefType(pTI->reflist); 2427 2403 } … … 2450 2426 if(info->next == 0xffff) 2451 2427 break; 2452 if(OneOnly) 2453 { 2454 FIXME("Interface inheriting more than one interface\n"); 2455 } 2428 if(OneOnly) 2429 FIXME("Interface inheriting more than one interface\n"); 2456 2430 info = (SLTG_ImplInfo*)(pBlk + info->next); 2457 2431 } … … 2907 2881 2908 2882 if((pTIHeader->typeflags1 & 7) != 2) 2909 { 2910 FIXME("typeflags1 = %02x\n", pTIHeader->typeflags1); 2911 } 2883 FIXME("typeflags1 = %02x\n", pTIHeader->typeflags1); 2912 2884 if(pTIHeader->typeflags3 != 2) 2913 { 2914 FIXME("typeflags3 = %02x\n", pTIHeader->typeflags3); 2915 } 2885 FIXME("typeflags3 = %02x\n", pTIHeader->typeflags3); 2886 2916 2887 TRACE("TypeInfo %s of kind %s guid %s typeflags %04x\n", 2917 2888 debugstr_w((*ppTypeInfoImpl)->Name), … … 3911 3882 WARN("Could not search inherited interface!\n"); 3912 3883 } else 3913 { 3914 WARN("no names found\n"); 3915 } 3884 WARN("no names found\n"); 3916 3885 return DISP_E_UNKNOWNNAME; 3917 3886 } … … 4045 4014 } 4046 4015 } 4047 if (pFDesc->funcdesc.cParamsOpt) 4048 { 4016 if (pFDesc->funcdesc.cParamsOpt) 4049 4017 FIXME("Does not support optional parameters (%d)\n", 4050 4018 pFDesc->funcdesc.cParamsOpt 4051 ); 4052 } 4019 ); 4053 4020 4054 4021 res = _invoke((*(DWORD***)pIUnk)[pFDesc->funcdesc.oVft/4], … … 4101 4068 pVarResult,pExcepInfo,pArgErr 4102 4069 ); 4103 if (hr) 4104 { 4105 FIXME("IDispatch::Invoke failed with %08lx. (Could be not a real error?)\n",hr); 4106 } 4070 if (hr) 4071 FIXME("IDispatch::Invoke failed with %08lx. (Could be not a real error?)\n",hr); 4107 4072 IDispatch_Release(disp); 4108 4073 return hr; … … 4242 4207 break; 4243 4208 } 4244 if(!pRefType) 4245 { 4246 FIXME("Can't find pRefType for ref %lx\n", hRefType); 4247 } 4209 if(!pRefType) 4210 FIXME("Can't find pRefType for ref %lx\n", hRefType); 4248 4211 if(pRefType && hRefType != -1) { 4249 4212 ITypeLib *pTLib;
Note:
See TracChangeset
for help on using the changeset viewer.