Changeset 128 for trunk


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r127 r128  
    113113#define NK_TYPE_LINKKEY            0x0010
    114114#define NK_TYPE_NORMALKEY          0x0020
    115 #define NK_TYPE_ROOTKEY            0x002c
     115#define NK_TYPE_ROOTKEY1           0x002c
     116#define NK_TYPE_ROOTKEY2           0x00ac
    116117 /* XXX: Unknown type that shows up in Vista registries */
    117118#define NK_TYPE_UNKNOWN1           0x1020
  • 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.