diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-25 23:30:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-28 08:44:39 +0100 |
commit | 0e8c79ab99d284e08a85293e58c94530df69230f (patch) | |
tree | 755d3511970b412441f6f35ec1eeb62edf0b8d7f /avmedia | |
parent | 6cd09d31f48539d2ba8ae89f0725e6fbef37b920 (diff) |
Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I6d763369aa0c142ec0b0b9fb08aeb212eaae7f2f
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/win/player.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx index 4f6cd78902e9..8bf50f231d45 100644 --- a/avmedia/source/win/player.cxx +++ b/avmedia/source/win/player.cxx @@ -47,7 +47,7 @@ namespace avmedia { namespace win { LRESULT CALLBACK MediaPlayerWndProc_2( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM nPar2 ) { - Player* pPlayer = (Player*) ::GetWindowLong( hWnd, 0 ); + Player* pPlayer = (Player*) ::GetWindowLongPtr( hWnd, 0 ); bool bProcessed = true; if( pPlayer ) @@ -273,7 +273,7 @@ void SAL_CALL Player::start( ) if ( mnFrameWnd ) { ::ShowWindow(mnFrameWnd, SW_HIDE); - ::SetWindowLong( mnFrameWnd, 0, (DWORD) this ); + ::SetWindowLongPtr( mnFrameWnd, 0, (LONG_PTR) this ); // mpVW->put_Owner( (OAHWND) mnFrameWnd ); setNotifyWnd( mnFrameWnd ); } |