- Timestamp:
- 02/12/09 22:24:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/regfi.c
r140 r143 510 510 ret_val = regfi_load_subkeylist_aux(file, offset, max_size, strict, 511 511 REGFI_MAX_SUBKEY_DEPTH); 512 if(ret_val == NULL) 513 { 514 regfi_add_message(file, REGFI_MSG_WARN, "Failed to load subkey list at" 515 " offset 0x%.8X.", offset); 516 return NULL; 517 } 512 518 513 519 if(num_keys != ret_val->num_keys) … … 1152 1158 1153 1159 /* open an existing file */ 1154 if ((fd = open(filename, O_RDONLY)) == -1)1155 { 1156 /* DEBUG(0,("regfi_open: failure to open %s (%s)\n", filename, strerror(errno)));*/1160 if ((fd = open(filename, REGFI_OPEN_FLAGS)) == -1) 1161 { 1162 /* fprintf(stderr, "regfi_open: failure to open %s (%s)\n", filename, strerror(errno));*/ 1157 1163 return NULL; 1158 1164 } … … 1170 1176 if ((rb = regfi_parse_regf(fd, true)) == NULL) 1171 1177 { 1172 /* DEBUG(0,("regfi_open: Failed to read initial REGF block\n"));*/1178 /* fprintf(stderr, "regfi_open: Failed to read initial REGF block\n"); */ 1173 1179 close(fd); 1174 1180 return NULL; … … 1179 1185 if(rb->hbins == NULL) 1180 1186 { 1187 /* fprintf(stderr, "regfi_open: Failed to create HBIN list.\n"); */ 1181 1188 range_list_free(rb->hbins); 1182 1189 close(fd); … … 1331 1338 * caching and make things slow. 1332 1339 */ 1333 ret_val->sk_recs = lru_cache_create(127, 0x15DEAD05^time(NULL) 1334 ^(getpid()<<16)^(getppid()<<8), 1340 ret_val->sk_recs = lru_cache_create(127, 0x15DEAD05^time(NULL)^(getpid()<<16), 1335 1341 true); 1336 1342
Note: See TracChangeset
for help on using the changeset viewer.