Skip to content

Commit

Permalink
Fix C/C++ Windows bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
extiop committed Nov 7, 2024
1 parent ce660ff commit ba9b675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/C/tests/windows-msvc/src/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ba9b675

Please sign in to comment.