diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index 8c17e82..3319c5e 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -1568,7 +1568,7 @@ GHC_INLINE path resolveSymlink(const path& p, std::error_code& ec) } char buffer[MAXIMUM_REPARSE_DATA_BUFFER_SIZE] = {0}; - REPARSE_DATA_BUFFER& reparseData = *reinterpret_cast(buffer); + REPARSE_DATA_BUFFER& reparseData = *reinterpret_cast((void*)buffer); ULONG bufferUsed; path result; if (DeviceIoControl(file.get(), FSCTL_GET_REPARSE_POINT, 0, 0, &reparseData, sizeof(buffer), &bufferUsed, 0)) {