{
struct wim_dentry *root = NULL;
struct wim_inode *inode = NULL;
- HANDLE h = INVALID_HANDLE_VALUE;
+ HANDLE h = NULL;
int ret;
NTSTATUS status;
FILE_ALL_INFORMATION file_info;
* file, we have to close the file and re-open it later if
* needed. */
(*func_NtClose)(h);
- h = INVALID_HANDLE_VALUE;
+ h = NULL;
ret = winnt_load_encrypted_stream_info(inode, full_path,
params->unhashed_streams);
if (ret)
/* Directory: recurse to children. */
- if (unlikely(h == INVALID_HANDLE_VALUE)) {
+ if (unlikely(!h)) {
/* Re-open handle that was closed to read raw encrypted
* data. */
status = winnt_openat(cur_dir,
else
ret = do_capture_progress(params, WIMLIB_SCAN_DENTRY_EXCLUDED, NULL);
out:
- if (likely(h != INVALID_HANDLE_VALUE))
+ if (likely(h))
(*func_NtClose)(h);
if (unlikely(ret)) {
free_dentry_tree(root, params->lookup_table);