Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
plzombie committed May 9, 2023
1 parent 55313e6 commit 3e0d7f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/depress_maker_djvu.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "unixsupport/waccess.h"
#include "unixsupport/wremove.h"
#include "unixsupport/wpopen.h"
#include <unistd.h>
#endif

int depressMakerDjvuConvertCtx(void *ctx, size_t id, depress_flags_type flags, depress_load_image_type load_image, void *load_image_ctx)
Expand Down Expand Up @@ -196,7 +197,7 @@ bool depressMakerDjvuFinalizeCtx(void *ctx, const depress_maker_finalize_type fi
#if defined(WIN32)
swprintf(opencommand, 65622, L"\"\"%ls\" \"%ls\"\"", djvu_ctx->djvulibre_paths.djvused_path, djvu_ctx->output_file);
#else
swprintf(opencommand, 65622, L"\"%ls\" \"%ls\"", djvu_ctx->djvulibre_paths.djvused_path, output_file);
swprintf(opencommand, 65622, L"\"%ls\" \"%ls\"", djvu_ctx->djvulibre_paths.djvused_path, djvu_ctx->output_file);
#endif

djvused = _wpopen(opencommand, L"wt");
Expand Down

1 comment on commit 3e0d7f8

@zvezdochiot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@plzombie , good work! 👍

Please sign in to comment.