summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-25 23:30:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-28 08:44:39 +0100
commit0e8c79ab99d284e08a85293e58c94530df69230f (patch)
tree755d3511970b412441f6f35ec1eeb62edf0b8d7f
parent-Werror,-Wint-to-pointer-cast (diff)
downloadcore-0e8c79ab99d284e08a85293e58c94530df69230f.tar.gz
core-0e8c79ab99d284e08a85293e58c94530df69230f.zip
Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I6d763369aa0c142ec0b0b9fb08aeb212eaae7f2f
-rw-r--r--avmedia/source/win/player.cxx4
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 );
}