Changeset 128
- Timestamp:
- 01/10/09 12:32:28 (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r127 r128 113 113 #define NK_TYPE_LINKKEY 0x0010 114 114 #define NK_TYPE_NORMALKEY 0x0020 115 #define NK_TYPE_ROOTKEY 0x002c 115 #define NK_TYPE_ROOTKEY1 0x002c 116 #define NK_TYPE_ROOTKEY2 0x00ac 116 117 /* XXX: Unknown type that shows up in Vista registries */ 117 118 #define NK_TYPE_UNKNOWN1 0x1020 -
trunk/lib/regfi.c
r127 r128 541 541 sublists[i] = regfi_load_subkeylist(file, off, 0, max_length, strict); 542 542 } 543 543 544 544 return regfi_merge_subkeylists(num_sublists, sublists, strict); 545 545 } … … 893 893 if(nk->subkeys == NULL) 894 894 { 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 */ 896 898 nk->num_subkeys = 0; 897 899 } … … 931 933 if(nk != NULL) 932 934 { 933 if(nk->key_type == NK_TYPE_ROOTKEY) 935 if((nk->key_type == NK_TYPE_ROOTKEY1) 936 || (nk->key_type == NK_TYPE_ROOTKEY2)) 934 937 { 935 938 found = true; … … 1612 1615 /* A bit of validation before bothering to allocate memory */ 1613 1616 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; 1620 1618 1621 1619 ret_val = (REGF_NK_REC*)zalloc(sizeof(REGF_NK_REC));
Note: See TracChangeset
for help on using the changeset viewer.