Kaydet (Commit) 0e8c79ab authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use Get/SetWindowLongPtr, for 64-bit build

Change-Id: I6d763369aa0c142ec0b0b9fb08aeb212eaae7f2f
üst 6cd09d31
...@@ -47,7 +47,7 @@ namespace avmedia { namespace win { ...@@ -47,7 +47,7 @@ namespace avmedia { namespace win {
LRESULT CALLBACK MediaPlayerWndProc_2( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM nPar2 ) 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; bool bProcessed = true;
if( pPlayer ) if( pPlayer )
...@@ -273,7 +273,7 @@ void SAL_CALL Player::start( ) ...@@ -273,7 +273,7 @@ void SAL_CALL Player::start( )
if ( mnFrameWnd ) if ( mnFrameWnd )
{ {
::ShowWindow(mnFrameWnd, SW_HIDE); ::ShowWindow(mnFrameWnd, SW_HIDE);
::SetWindowLong( mnFrameWnd, 0, (DWORD) this ); ::SetWindowLongPtr( mnFrameWnd, 0, (LONG_PTR) this );
// mpVW->put_Owner( (OAHWND) mnFrameWnd ); // mpVW->put_Owner( (OAHWND) mnFrameWnd );
setNotifyWnd( 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