Changeset 128 for trunk/lib


Ignore:
Timestamp:
01/10/09 12:32:28 (15 years ago)
Author:
tim
Message:

added secondary root key type found in Vista registries by Jolanta Thomassen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/regfi.c

    r127 r128  
    541541      sublists[i] = regfi_load_subkeylist(file, off, 0, max_length, strict);
    542542    }
    543 
     543   
    544544    return regfi_merge_subkeylists(num_sublists, sublists, strict);
    545545  }
     
    893893      if(nk->subkeys == NULL)
    894894      {
    895         /* XXX: Temporary hack to get around 'ri' records */
     895        /* XXX: Should we free the key and bail out here instead? 
     896         *      During nonstrict?
     897         */
    896898        nk->num_subkeys = 0;
    897899      }
     
    931933      if(nk != NULL)
    932934      {
    933         if(nk->key_type == NK_TYPE_ROOTKEY)
     935        if((nk->key_type == NK_TYPE_ROOTKEY1)
     936           || (nk->key_type == NK_TYPE_ROOTKEY2))
    934937        {
    935938          found = true;
     
    16121615  /* A bit of validation before bothering to allocate memory */
    16131616  if((nk_header[0x0] != 'n') || (nk_header[0x1] != 'k'))
    1614   {
    1615     /* XXX: Deal with subkey-lists that reference other subkey-lists
    1616      *      (e.g. 'ri' records).
    1617      */
    1618     return NULL;
    1619   }
     1617    return NULL;
    16201618
    16211619  ret_val = (REGF_NK_REC*)zalloc(sizeof(REGF_NK_REC));
Note: See TracChangeset for help on using the changeset viewer.