From ba9b6756f5250d9ef12efb6d1ff054081ebb2009 Mon Sep 17 00:00:00 2001 From: extiop <29679238+extiop@users.noreply.github.com> Date: Thu, 7 Nov 2024 23:59:21 +0100 Subject: [PATCH] Fix C/C++ Windows bindings --- bindings/C/tests/windows-msvc/src/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/C/tests/windows-msvc/src/read.c b/bindings/C/tests/windows-msvc/src/read.c index d46418ec..13811b9f 100644 --- a/bindings/C/tests/windows-msvc/src/read.c +++ b/bindings/C/tests/windows-msvc/src/read.c @@ -90,7 +90,7 @@ int test_reader_info() MLAStatus status; ArchiveInfo archive_info; - HANDLE hFile = CreateFile(TEXT("../../../../samples/archive_v1.mla"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + HANDLE hFile = CreateFile(TEXT("../../../../samples/archive_v2.mla"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { fprintf(stderr, " [!] Cannot open file: %d\n", GetLastError()); @@ -166,7 +166,7 @@ int test_reader_extract() } FILE *f; - if (fopen_s(&f, "../../../../samples/archive_v1.mla", "r")) + if (fopen_s(&f, "../../../../samples/archive_v2.mla", "r")) { fprintf(stderr, " [!] Cannot open file: %d\n", errno); return 1;