From: Steve Lhomme Date: Thu, 25 May 2023 08:16:08 +0000 (+0200) Subject: fix the CreateHardLinkW signature to match the real function X-Git-Tag: v3.7.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2493eb822e021a56346793cb5bd57c405d82e0a;p=thirdparty%2Flibarchive.git fix the CreateHardLinkW signature to match the real function The `ret` variable was already using BOOL instead of BOOLEAN. --- diff --git a/libarchive/archive_write_disk_windows.c b/libarchive/archive_write_disk_windows.c index a417a7e02..09c131234 100644 --- a/libarchive/archive_write_disk_windows.c +++ b/libarchive/archive_write_disk_windows.c @@ -580,7 +580,7 @@ la_GetFunctionKernel32(const char *name) static int la_CreateHardLinkW(wchar_t *linkname, wchar_t *target) { - static BOOLEAN (WINAPI *f)(LPWSTR, LPWSTR, LPSECURITY_ATTRIBUTES); + static BOOL (WINAPI *f)(LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES); BOOL ret; #if _WIN32_WINNT < _WIN32_WINNT_XP