summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-25 23:30:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-02 15:34:58 +0100
commit79a4e216048cd8655e91531f34d3474e04f24bf1 (patch)
tree566bdd63a58948963b1c30be224cf62ed6a3cf32 /avmedia
parent2bd890e190b66a6027594f657a6f05b1b5a803bb (diff)
Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I6d763369aa0c142ec0b0b9fb08aeb212eaae7f2f (cherry picked from commit 0e8c79ab99d284e08a85293e58c94530df69230f)
Diffstat (limited to 'avmedia')
-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 );
}