Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I3041d93f98e491e4600da78a0d1f6100be1177a7
This commit is contained in:
@@ -62,7 +62,7 @@ static ::osl::Mutex& ImplGetOwnStaticMutex()
|
|||||||
|
|
||||||
LRESULT CALLBACK MediaPlayerWndProc( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM nPar2 )
|
LRESULT CALLBACK MediaPlayerWndProc( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM nPar2 )
|
||||||
{
|
{
|
||||||
Window* pWindow = (Window*) ::GetWindowLong( hWnd, 0 );
|
Window* pWindow = (Window*) ::GetWindowLongPtr( hWnd, 0 );
|
||||||
bool bProcessed = true;
|
bool bProcessed = true;
|
||||||
|
|
||||||
if( pWindow )
|
if( pWindow )
|
||||||
@@ -305,7 +305,7 @@ bool Window::create( const uno::Sequence< uno::Any >& rArguments )
|
|||||||
|
|
||||||
if( mnFrameWnd )
|
if( mnFrameWnd )
|
||||||
{
|
{
|
||||||
::SetWindowLong( mnFrameWnd, 0, (DWORD) this );
|
::SetWindowLongPtr( mnFrameWnd, 0, (LONG_PTR) this );
|
||||||
|
|
||||||
pVideoWindow->put_Owner( (OAHWND) mnFrameWnd );
|
pVideoWindow->put_Owner( (OAHWND) mnFrameWnd );
|
||||||
pVideoWindow->put_MessageDrain( (OAHWND) mnFrameWnd );
|
pVideoWindow->put_MessageDrain( (OAHWND) mnFrameWnd );
|
||||||
|
Reference in New Issue
Block a user