diff -rupN --no-dereference gdal-3.10.1-fedora/port/cpl_vsil_win32.cpp gdal-3.10.1-fedora-new/port/cpl_vsil_win32.cpp --- gdal-3.10.1-fedora/port/cpl_vsil_win32.cpp 2025-01-08 15:54:06.000000000 +0100 +++ gdal-3.10.1-fedora-new/port/cpl_vsil_win32.cpp 2025-01-14 22:27:26.805886705 +0100 @@ -896,7 +896,7 @@ int VSIWin32FilesystemHandler::Stat(cons pwszFilename[nLen - 1] = 0; #endif - int nResult = _wstat64(pwszFilename, pStatBuf); + int nResult = _wstat64(pwszFilename, reinterpret_cast(pStatBuf)); // If _wstat64() fails and the original name is not an extended one, // then retry with an extended filename @@ -907,7 +907,7 @@ int VSIWin32FilesystemHandler::Stat(cons nLastError == ERROR_FILENAME_EXCED_RANGE) { VSIWin32TryLongFilename(pwszFilename); - nResult = _wstat64(pwszFilename, pStatBuf); + nResult = _wstat64(pwszFilename, reinterpret_cast(pStatBuf)); } }