This is an automated email from the ASF dual-hosted git repository. damjan pushed a commit to branch windows-amd64 in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 870859ad651ba416b1c7094176893d5945e043d0 Author: Damjan Jovanovic <dam...@apache.org> AuthorDate: Thu Jan 2 21:01:12 2025 +0200 Replace the 32 bit only SetClassLong()/GetClassLong() Windows API calls with SetClassLongPtr()/GetClassLongPtr() which work on Win64 too. Patch by: me --- main/vcl/inc/win/wincomp.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/vcl/inc/win/wincomp.hxx b/main/vcl/inc/win/wincomp.hxx index abbb76af0e..c173a0bd82 100644 --- a/main/vcl/inc/win/wincomp.hxx +++ b/main/vcl/inc/win/wincomp.hxx @@ -146,32 +146,32 @@ inline HFONT GetWindowFont( HWND hWnd ) inline void SetClassCursor( HWND hWnd, HCURSOR hCursor ) { - SetClassLong( hWnd, GCL_HCURSOR, (DWORD)hCursor ); + SetClassLongPtr( hWnd, GCLP_HCURSOR, (LONG_PTR)hCursor ); } inline HCURSOR GetClassCursor( HWND hWnd ) { - return (HCURSOR)GetClassLong( hWnd, GCL_HCURSOR ); + return (HCURSOR)GetClassLongPtr( hWnd, GCLP_HCURSOR ); } inline void SetClassIcon( HWND hWnd, HICON hIcon ) { - SetClassLong( hWnd, GCL_HICON, (DWORD)hIcon ); + SetClassLongPtr( hWnd, GCLP_HICON, (LONG_PTR)hIcon ); } inline HICON GetClassIcon( HWND hWnd ) { - return (HICON)GetClassLong( hWnd, GCL_HICON ); + return (HICON)GetClassLongPtr( hWnd, GCLP_HICON ); } inline HBRUSH SetClassBrush( HWND hWnd, HBRUSH hBrush ) { - return (HBRUSH)SetClassLong( hWnd, GCL_HBRBACKGROUND, (DWORD)hBrush ); + return (HBRUSH)SetClassLongPtr( hWnd, GCLP_HBRBACKGROUND, (LONG_PTR)hBrush ); } inline HBRUSH GetClassBrush( HWND hWnd ) { - return (HBRUSH)GetClassLong( hWnd, GCL_HBRBACKGROUND ); + return (HBRUSH)GetClassLongPtr( hWnd, GCLP_HBRBACKGROUND ); } inline HINSTANCE GetWindowInstance( HWND hWnd )