[PATCH 26/32] mciqtz32: Fix mciSeek

Maarten Lankhorst m.b.lankhorst at gmail.com
Fri May 21 15:05:35 CDT 2010


---
 dlls/mciqtz32/mciqtz.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/mciqtz32/mciqtz.c b/dlls/mciqtz32/mciqtz.c
index 50faf13..5dd9d01 100644
--- a/dlls/mciqtz32/mciqtz.c
+++ b/dlls/mciqtz32/mciqtz.c
@@ -331,16 +331,14 @@ static DWORD MCIQTZ_mciSeek(UINT wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpParms
     if (!wma)
         return MCIERR_INVALID_DEVICE_ID;
 
-    MCIQTZ_mciStop(wDevID, MCI_WAIT, NULL);
-
     if (dwFlags & MCI_SEEK_TO_START) {
         newpos = 0;
     } else if (dwFlags & MCI_SEEK_TO_END) {
         FIXME("MCI_SEEK_TO_END not implemented yet\n");
         return MCIERR_INTERNAL;
     } else if (dwFlags & MCI_TO) {
-        FIXME("MCI_TO not implemented yet\n");
-        return MCIERR_INTERNAL;
+        newpos = lpParms->dwTo;
+        newpos *= 10000;
     } else {
         WARN("dwFlag doesn't tell where to seek to...\n");
         return MCIERR_MISSING_PARAMETER;
-- 
1.7.0.4


--------------060904080803000708070700--



More information about the wine-patches mailing list