[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] stat: use a CHAR instead of TCHAR with GetFinalPathNameByHan
From: |
Steve Lhomme |
Subject: |
[PATCH 1/2] stat: use a CHAR instead of TCHAR with GetFinalPathNameByHandleA |
Date: |
Tue, 19 May 2020 08:26:09 +0200 |
The GetProcAddress uses the ANSI version of the API so the proper type for the
string is LPSTR, as found here:
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfinalpathnamebyhandlea
---
lib/stat-w32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/stat-w32.c b/lib/stat-w32.c
index 296ccf18c..106d25120 100644
--- a/lib/stat-w32.c
+++ b/lib/stat-w32.c
@@ -52,7 +52,7 @@ static GetFileInformationByHandleExFuncType
GetFileInformationByHandleExFunc = N
#endif
/* GetFinalPathNameByHandle was introduced only in Windows Vista. */
typedef DWORD (WINAPI * GetFinalPathNameByHandleFuncType) (HANDLE hFile,
- LPTSTR lpFilePath,
+ LPSTR lpFilePath,
DWORD lenFilePath,
DWORD dwFlags);
static GetFinalPathNameByHandleFuncType GetFinalPathNameByHandleFunc = NULL;
--
2.26.2
- [PATCH 1/2] stat: use a CHAR instead of TCHAR with GetFinalPathNameByHandleA,
Steve Lhomme <=