diff --git a/winpr/libwinpr/file/generic.c b/winpr/libwinpr/file/generic.c index c9ac2a662..695984342 100644 --- a/winpr/libwinpr/file/generic.c +++ b/winpr/libwinpr/file/generic.c @@ -936,7 +936,7 @@ HANDLE FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData) { if (isDir) { - char* name = strrchr(lpFileName, '/'); + const char* name = strrchr(lpFileName, '/'); if (!name) name = lpFileName;