Changeset 167 for trunk/lib


Ignore:
Timestamp:
02/05/10 06:01:18 (15 years ago)
Author:
tim
Message:

added more regfi API documentation
minor consistency change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/regfi.c

    r166 r167  
    13831383{
    13841384  if(file->last_message != NULL)
    1385     free(last_message);
     1385    free(file->last_message);
    13861386
    13871387  talloc_free(file);
     
    17081708  REGFI_VK_REC* cur;
    17091709  bool found = false;
     1710  uint32 old_value = i->cur_value;
    17101711
    17111712  /* XXX: cur->valuename can be NULL in the registry. 
     
    17271728    }
    17281729  }
    1729 
    1730   return found;
     1730 
     1731  if(found == false)
     1732  {
     1733    i->cur_value = old_value;
     1734    return false;
     1735  }
     1736
     1737  regfi_free_value(cur);
     1738  return true;
    17311739}
    17321740
Note: See TracChangeset for help on using the changeset viewer.