summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-25 23:38:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-02 15:36:08 +0100
commit22c276885e5ebd9c0c1ec06ccb6b021a471a452f (patch)
tree8a609756d29923cdd15bf391d8ed96acde8b1f8f /avmedia
parent79a4e216048cd8655e91531f34d3474e04f24bf1 (diff)
Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I3041d93f98e491e4600da78a0d1f6100be1177a7 (cherry picked from commit cff54fb87a25a5445a2110e102a3de2b8226a21c)
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/win/window.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx
index 56ec9690bd67..3f4f296d2583 100644
--- a/avmedia/source/win/window.cxx
+++ b/avmedia/source/win/window.cxx
@@ -62,7 +62,7 @@ static ::osl::Mutex& ImplGetOwnStaticMutex()
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;
if( pWindow )
@@ -305,7 +305,7 @@ bool Window::create( const uno::Sequence< uno::Any >& rArguments )
if( mnFrameWnd )
{
- ::SetWindowLong( mnFrameWnd, 0, (DWORD) this );
+ ::SetWindowLongPtr( mnFrameWnd, 0, (LONG_PTR) this );
pVideoWindow->put_Owner( (OAHWND) mnFrameWnd );
pVideoWindow->put_MessageDrain( (OAHWND) mnFrameWnd );