Changeset 745 for trunk/server/source4/lib/registry/interface.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/lib/registry/interface.c
r414 r745 45 45 _PUBLIC_ const char *reg_get_predef_name(uint32_t hkey) 46 46 { 47 int i;47 unsigned int i; 48 48 for (i = 0; reg_predefined_keys[i].name; i++) { 49 49 if (reg_predefined_keys[i].handle == hkey) … … 59 59 struct registry_key **key) 60 60 { 61 int i;61 unsigned int i; 62 62 63 63 for (i = 0; reg_predefined_keys[i].name; i++) { … … 151 151 _PUBLIC_ WERROR reg_key_get_subkey_by_index(TALLOC_CTX *mem_ctx, 152 152 const struct registry_key *key, 153 int idx, const char **name,153 uint32_t idx, const char **name, 154 154 const char **keyclass, 155 155 NTTIME *last_changed_time) … … 186 186 * Delete a key. 187 187 */ 188 _PUBLIC_ WERROR reg_key_del(struct registry_key *parent, const char *name) 188 _PUBLIC_ WERROR reg_key_del(TALLOC_CTX *mem_ctx, struct registry_key *parent, 189 const char *name) 189 190 { 190 191 if (parent == NULL) … … 194 195 return WERR_NOT_SUPPORTED; 195 196 196 return parent->context->ops->delete_key( parent, name);197 return parent->context->ops->delete_key(mem_ctx, parent, name); 197 198 } 198 199 … … 202 203 _PUBLIC_ WERROR reg_key_add_name(TALLOC_CTX *mem_ctx, 203 204 struct registry_key *parent, 204 const char * name, const char *key_class,205 const char *path, const char *key_class, 205 206 struct security_descriptor *desc, 206 207 struct registry_key **newkey) … … 215 216 } 216 217 217 return parent->context->ops->create_key(mem_ctx, parent, name,218 return parent->context->ops->create_key(mem_ctx, parent, path, 218 219 key_class, desc, newkey); 219 220 } … … 258 259 * Delete a value. 259 260 */ 260 _PUBLIC_ WERROR reg_del_value(struct registry_key *key, const char *valname) 261 _PUBLIC_ WERROR reg_del_value(TALLOC_CTX *mem_ctx, struct registry_key *key, 262 const char *valname) 261 263 { 262 264 if (key == NULL) … … 266 268 return WERR_NOT_SUPPORTED; 267 269 268 return key->context->ops->delete_value( key, valname);270 return key->context->ops->delete_value(mem_ctx, key, valname); 269 271 } 270 272
Note:
See TracChangeset
for help on using the changeset viewer.