]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix the CreateHardLinkW signature to match the real function
authorSteve Lhomme <robux4@ycbcr.xyz>
Thu, 25 May 2023 08:16:08 +0000 (10:16 +0200)
committerMartin Matuška <martin@matuska.de>
Thu, 13 Jul 2023 22:27:45 +0000 (00:27 +0200)
The `ret` variable was already using BOOL instead of BOOLEAN.

libarchive/archive_write_disk_windows.c

index a417a7e02596425f021b04656683317bfc5413fc..09c131234b5fea6f8026beaf2425766823651065 100644 (file)
@@ -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