This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch AOO42X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit c902fb22cbea4d355e59ed59eab410f36290585c Author: Damjan Jovanovic <[email protected]> AuthorDate: Thu Jan 2 21:59:02 2025 +0200 In ImplPreparePolyDraw(), nCurrPoints and nCurrPoint should be sal_uInt32, just like pPoints points to, which they are assigned from or related to. Commit 30f18d3fb8fe7eacd8ee5f353bc7c60bfbf18ac5 didn't fix all the uses of the pointer size change it made. Patch by: me (cherry picked from commit 48f8cc8f699b12f766e669922446071e6902869c) --- main/vcl/win/source/gdi/salgdi.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/vcl/win/source/gdi/salgdi.cxx b/main/vcl/win/source/gdi/salgdi.cxx index 53453a0ec3..b4017433ec 100644 --- a/main/vcl/win/source/gdi/salgdi.cxx +++ b/main/vcl/win/source/gdi/salgdi.cxx @@ -633,9 +633,9 @@ void ImplPreparePolyDraw( bool bCloseFigures, { const POINT* pCurrPoint = reinterpret_cast<const POINT*>( *pPtAry++ ); const BYTE* pCurrFlag = *pFlgAry++; - const sal_uLong nCurrPoints = *pPoints++; + const sal_uInt32 nCurrPoints = *pPoints++; const bool bHaveFlagArray( pCurrFlag ); - sal_uLong nCurrPoint; + sal_uInt32 nCurrPoint; if( nCurrPoints ) {
