Changeset 745 for trunk/server/source3/registry/reg_cachehook.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/source3/registry/reg_cachehook.c
r414 r745 3 3 * Virtual Windows Registry Layer 4 4 * Copyright (C) Gerald Carter 2002. 5 * Copyright (C) Michael Adam 2008 5 6 * 6 7 * This program is free software; you can redistribute it and/or modify … … 22 23 #include "includes.h" 23 24 #include "adt_tree.h" 25 #include "registry.h" 26 #include "reg_cachehook.h" 24 27 25 28 #undef DBGC_CLASS 26 29 #define DBGC_CLASS DBGC_REGISTRY 27 30 28 static SORTED_TREE*cache_tree = NULL;31 static struct sorted_tree *cache_tree = NULL; 29 32 extern struct registry_ops regdb_ops; /* these are the default */ 30 33 … … 41 44 if (tmp_path == NULL) { 42 45 DEBUG(0, ("talloc_asprintf failed!\n")); 43 return WERR_NOMEM;44 }45 46 tmp_path = talloc_string_sub(mem_ctx, tmp_path, "\\", "/");47 if (tmp_path == NULL) {48 DEBUG(0, ("talloc_string_sub_failed!\n"));49 46 return WERR_NOMEM; 50 47 } … … 65 62 } 66 63 67 cache_tree = pathtree_init(®db_ops , NULL);64 cache_tree = pathtree_init(®db_ops); 68 65 if (cache_tree == NULL) { 69 66 return WERR_NOMEM; … … 77 74 /********************************************************************** 78 75 Add a new registry hook to the cache. Note that the keyname 79 is not in the exact format that a SORTED_TREEexpects.76 is not in the exact format that a struct sorted_tree expects. 80 77 *********************************************************************/ 81 78
Note:
See TracChangeset
for help on using the changeset viewer.