Changeset 238 for trunk/src/helpers/eah.c
- Timestamp:
- Dec 24, 2002, 8:44:35 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/eah.c
r222 r238 242 242 } 243 243 244 return (ulTotalEASize);244 return ulTotalEASize; 245 245 } 246 246 … … 254 254 PEALIST eaPathReadAll(const char *pcszPath) 255 255 { 256 return (ReadEAList(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath));256 return ReadEAList(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath); 257 257 } 258 258 … … 264 264 PEALIST eaHFileReadAll(HFILE hfile) 265 265 { 266 return (ReadEAList(ENUMEA_REFTYPE_FHANDLE, (&hfile)));266 return ReadEAList(ENUMEA_REFTYPE_FHANDLE, (&hfile)); 267 267 } 268 268 … … 278 278 PEABINDING eaPathReadOneByIndex(const char *pcszPath, ULONG index) 279 279 { 280 return (ReadEAByIndex(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, index));280 return ReadEAByIndex(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, index); 281 281 } 282 282 … … 288 288 PEABINDING eaHFileReadOneByIndex(HFILE hfile, ULONG index) 289 289 { 290 return (ReadEAByIndex(ENUMEA_REFTYPE_FHANDLE, (&hfile), index));290 return ReadEAByIndex(ENUMEA_REFTYPE_FHANDLE, (&hfile), index); 291 291 } 292 292 … … 300 300 PEABINDING eaPathReadOneByName(const char *pcszPath, const char *pcszEAName) 301 301 { 302 return (ReadEAByName(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, (PSZ)pcszEAName));302 return ReadEAByName(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, (PSZ)pcszEAName); 303 303 } 304 304 … … 310 310 PEABINDING eaHFileReadOneByName(HFILE hfile, const char *pcszEAName) 311 311 { 312 return (ReadEAByName(ENUMEA_REFTYPE_FHANDLE, (&hfile), (PSZ)pcszEAName));312 return ReadEAByName(ENUMEA_REFTYPE_FHANDLE, (&hfile), (PSZ)pcszEAName); 313 313 } 314 314 … … 334 334 APIRET eaPathWriteAll(const char *pcszPath, PEALIST list) 335 335 { 336 return (WriteEAList(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, list));336 return WriteEAList(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, list); 337 337 } 338 338 … … 346 346 APIRET eaHFileWriteAll(HFILE hfile, PEALIST list) 347 347 { 348 return (WriteEAList(ENUMEA_REFTYPE_FHANDLE, (&hfile), list));348 return WriteEAList(ENUMEA_REFTYPE_FHANDLE, (&hfile), list); 349 349 } 350 350 … … 365 365 APIRET eaPathWriteOne(const char *pcszPath, PEABINDING peab) 366 366 { 367 return (WriteEA(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, peab));367 return WriteEA(ENUMEA_REFTYPE_PATH, (PSZ)pcszPath, peab); 368 368 } 369 369 … … 377 377 APIRET eaHFileWriteOne(HFILE hfile, PEABINDING peab) 378 378 { 379 return (WriteEA(ENUMEA_REFTYPE_FHANDLE, (&hfile), peab));379 return WriteEA(ENUMEA_REFTYPE_FHANDLE, (&hfile), peab); 380 380 } 381 381 … … 398 398 eab.usValueLength = 0; 399 399 eab.pszValue = 0; 400 return (eaPathWriteOne(pcszPath, &eab));400 return eaPathWriteOne(pcszPath, &eab); 401 401 } 402 402 … … 431 431 // first USHORT always has EAT_* flag 432 432 usReturn = *((PUSHORT)(peab->pszValue)); 433 return (usReturn);433 return usReturn; 434 434 } 435 435 … … 465 465 } 466 466 467 return (pszReturn);467 return pszReturn; 468 468 } 469 469 … … 533 533 } 534 534 535 return (peab);535 return peab; 536 536 } 537 537 … … 583 583 } 584 584 585 return (usReturn);585 return usReturn; 586 586 } 587 587 … … 722 722 } // end if (usEAType == EAT_MVMT) 723 723 724 return (pszReturn);724 return pszReturn; 725 725 } 726 726 … … 819 819 } 820 820 821 return (pszTotal);821 return pszTotal; 822 822 } 823 823 … … 933 933 } // end if (pszInput) 934 934 935 return (peab);935 return peab; 936 936 } 937 937 … … 976 976 index += 1; 977 977 } 978 return (head);978 return head; 979 979 } 980 980 … … 1010 1010 return NULL; 1011 1011 if ((strcmp(name, (dena->szName))) == 0) 1012 return (GetEAValue(type, pfile, dena));1012 return GetEAValue(type, pfile, dena); 1013 1013 free(dena); 1014 1014 index += 1; … … 1057 1057 { 1058 1058 free(dena); 1059 return (0);1059 return 0; 1060 1060 } 1061 else 1062 return (dena);1061 1062 return dena; 1063 1063 } 1064 1064 … … 1086 1086 free(eaop.fpGEA2List); 1087 1087 if (arc == NO_ERROR) 1088 return (ConvertFeal2Binding(eaop.fpFEA2List));1089 else 1090 1088 return ConvertFeal2Binding(eaop.fpFEA2List); 1089 1090 return NULL; 1091 1091 } 1092 1092 … … 1142 1142 free(feal); 1143 1143 } 1144 return (binding); 1144 1145 return binding; 1145 1146 } 1146 1147 … … 1216 1217 (EA_BINDING_VALUE (binding)), 1217 1218 (fea->cbValue)); 1218 return (feal);1219 return feal; 1219 1220 } 1220 1221
Note:
See TracChangeset
for help on using the changeset viewer.