]> wimlib.net Git - wimlib/blobdiff - src/write.c
Misc. Win32 fixes, comment updates
[wimlib] / src / write.c
index da0ef9c9b617817b4e6602b935d5221cd42985a8..131125fa5881ac6500e6bd9a2a6e6cd47accef9c 100644 (file)
@@ -297,7 +297,7 @@ static int prepare_resource_for_read(struct wim_lookup_table_entry *lte
 #if defined(__CYGWIN__) || defined(__WIN32__)
        case RESOURCE_WIN32:
                if (!lte->file_on_disk_fp) {
-                       lte->file_on_disk_fp = win32_open_file(lte->file_on_disk);
+                       lte->file_on_disk_fp = win32_open_file_readonly(lte->file_on_disk);
                        if (!lte->file_on_disk_fp)
                                return WIMLIB_ERR_OPEN;
                }