]> wimlib.net Git - wimlib/blobdiff - src/win32_apply.c
Win32 apply: Create encrypted files with OpenEncryptedFileRaw()
[wimlib] / src / win32_apply.c
index 4a0a8a46d77ad22b41edf0354127ffb5ed61f520..e554b95d22029f752da59f363717b21deeb30f81 100644 (file)
@@ -259,11 +259,10 @@ win32_encrypted_import_cb(unsigned char *data, void *_import_ctx,
 }
 
 static int
-win32_extract_encrypted_stream(file_spec_t file,
+win32_extract_encrypted_stream(const wchar_t *path,
                               struct wim_lookup_table_entry *lte,
                               struct apply_ctx *ctx)
 {
-       const tchar *path = file.path;
        void *file_ctx;
        DWORD err;
        int ret;
@@ -614,6 +613,7 @@ const struct apply_operations win32_apply_ops = {
        .realpath_works_on_nonexisting_files = 1,
        .root_directory_is_special = 1,
        .requires_final_set_attributes_pass = 1,
+       .extract_encrypted_stream_creates_file = 1,
 };
 
 #endif /* __WIN32__ */