diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-25 23:30:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-02 15:34:58 +0100 |
commit | 79a4e216048cd8655e91531f34d3474e04f24bf1 (patch) | |
tree | 566bdd63a58948963b1c30be224cf62ed6a3cf32 | |
parent | -Werror,-Wint-to-pointer-cast (diff) | |
download | core-79a4e216048cd8655e91531f34d3474e04f24bf1.tar.gz core-79a4e216048cd8655e91531f34d3474e04f24bf1.zip |
Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I6d763369aa0c142ec0b0b9fb08aeb212eaae7f2f
(cherry picked from commit 0e8c79ab99d284e08a85293e58c94530df69230f)
-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 ); } |