Ejemplo n.º 1
0
WERROR reghook_cache_init(void)
{
	if (cache_tree != NULL) {
		return WERR_OK;
	}

	cache_tree = pathtree_init(&regdb_ops, NULL);
	if (cache_tree == NULL) {
		return WERR_NOMEM;
	}
	DEBUG(10, ("reghook_cache_init: new tree with default "
		   "ops %p for key [%s]\n", (void *)&regdb_ops,
		   KEY_TREE_ROOT));
	return WERR_OK;
}
Ejemplo n.º 2
0
BOOL reghook_cache_init( void )
{
	cache_tree = pathtree_init( &default_hook, NULL, NULL );

	return ( cache_tree == NULL );
}