From e70fda0eab4edd4910c1bd93d9b1a638cefeee68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 29 Nov 2004 12:47:20 +0000 Subject: [PATCH] Not native long long fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/mediactrl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/mediactrl.cpp b/src/msw/mediactrl.cpp index 2b1a0fd77b..7fb937113d 100644 --- a/src/msw/mediactrl.cpp +++ b/src/msw/mediactrl.cpp @@ -1080,7 +1080,13 @@ bool wxMCIMediaBackend::SetPosition(wxLongLong where) { MCI_SEEK_PARMS seekParms; seekParms.dwCallback = 0; +#if wxUSE_LONGLONG_NATIVE && !wxUSE_LONGLONG_WX seekParms.dwTo = (DWORD)where.GetValue(); +#else /* wxUSE_LONGLONG_WX */ + /* no way to return it in one piece */ + wxASSERT( where.GetHi()==0 ); + seekParms.dwTo = (DWORD)where.GetLo(); +#endif /* wxUSE_LONGLONG_* */ //device was playing? bool bReplay = GetState() == wxMEDIASTATE_PLAYING;