Use ntfs_attr_reinit_search_ctx instead ntfs_attr_init_search_ctx, because Anton fixed bug prevent us doing so.

(Logical change 1.585)
edge.strict_endians
(none)!yura 2004-09-29 15:52:46 +00:00
parent 21613e7190
commit 59ab6cdb33
1 changed files with 1 additions and 6 deletions

View File

@ -3466,12 +3466,7 @@ int ntfs_attr_update_mapping_pairs(ntfs_attr *na)
/* Deallocate not used attribute extents and return with success. */
if (finished_build) {
/*
* FIXME: We use ntfs_attr_init_search_ctx instead of
* ntfs_attr_reinit_search_ctx because last seems to be buggy.
*/
//ntfs_attr_reinit_search_ctx(ctx);
ntfs_attr_init_search_ctx(ctx, na->ni, NULL);
ntfs_attr_reinit_search_ctx(ctx);
Dprintf("%s(): Deallocate marked extents.\n", __FUNCTION__);
while (!ntfs_attr_lookup(na->type, na->name, na->name_len,
IGNORE_CASE, 0, NULL, 0, ctx)) {