Kaydet (Commit) 79a4e216 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use Get/SetWindowLongPtr, for 64-bit build

Change-Id: I6d763369aa0c142ec0b0b9fb08aeb212eaae7f2f
(cherry picked from commit 0e8c79ab)
üst 2bd890e1
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment