xml_windows: support non-default system roots
[wimlib] / src / update_image.c
index ac07b78..85de424 100644 (file)
@@ -870,9 +870,7 @@ execute_add_command(struct update_command_journal *j,
                        goto out_destroy_config;
        }
 
-       if (WIMLIB_IS_WIM_ROOT_PATH(wim_target_path) &&
-           get_dentry(wim, T("Windows"), WIMLIB_CASE_INSENSITIVE))
-       {
+       if (WIMLIB_IS_WIM_ROOT_PATH(wim_target_path)) {
                ret = set_windows_specific_info(wim);
                if (ret)
                        goto out_destroy_config;