X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11219c9ede74aa1a6cebe5004929063d6b427aa2..52069700e7f9c4cc1fc4379306e9f763c5b83073:/src/msw/mediactrl.cpp diff --git a/src/msw/mediactrl.cpp b/src/msw/mediactrl.cpp index 2b1a0fd77b..a6c9f7e610 100644 --- a/src/msw/mediactrl.cpp +++ b/src/msw/mediactrl.cpp @@ -43,7 +43,7 @@ //--------------------------------------------------------------------------- extern "C" WXDLLIMPEXP_BASE HINSTANCE wxGetInstance(void); #ifdef __WXWINCE__ -extern WXDLLIMPEXP_CORE wxChar *wxCanvasClassName; +extern WXDLLIMPEXP_CORE wxChar *wxCanvasClassName; #else extern WXDLLIMPEXP_CORE const wxChar *wxCanvasClassName; #endif @@ -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;