Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Feb 6, 2024
1 parent c8b7118 commit 4809161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tbox/platform/windows/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ tb_bool_t tb_file_copy(tb_char_t const* path, tb_char_t const* dest, tb_size_t f
tb_file_info_t info = {0};
if (flags & TB_FILE_COPY_LINK && tb_file_info(path, &info) && info.flags & TB_FILE_FLAG_LINK)
{
if (tb_kernel32()->CopyFileW)
return (tb_bool_t)tb_kernel32()->CopyFileW(full0, full1, tb_null, tb_null, FALSE, COPY_FILE_COPY_SYMLINK);
if (tb_kernel32()->CopyFileExW)
return (tb_bool_t)tb_kernel32()->CopyFileExW(full0, full1, tb_null, tb_null, FALSE, COPY_FILE_COPY_SYMLINK);
// TODO we should read file content to copy it
// ...
}
Expand Down

0 comments on commit 4809161

Please sign in to comment.