win32_apply.c: correct return value of adjust_compression_attribute
authorEric Biggers <ebiggers3@gmail.com>
Sat, 12 Mar 2016 03:35:24 +0000 (21:35 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 12 Mar 2016 03:35:24 +0000 (21:35 -0600)
src/win32_apply.c

index ef5b901..6f9e41b 100644 (file)
@@ -1129,7 +1129,7 @@ adjust_compression_attribute(HANDLE h, const struct wim_dentry *dentry,
        status = winnt_fsctl(h, FSCTL_SET_COMPRESSION,
                             &compression_state, sizeof(USHORT), NULL, 0, NULL);
        if (NT_SUCCESS(status))
-               return status;
+               return 0;
 
        winnt_error(status, L"Can't %s compression attribute on \"%ls\"",
                    (compressed ? "set" : "clear"), current_path(ctx));