Index: mmsystem.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/mmsystem.c,v
retrieving revision 1.101
diff -u -r1.101 mmsystem.c
--- mmsystem.c	9 Nov 2003 01:19:58 -0000	1.101
+++ mmsystem.c	30 Nov 2003 15:40:00 -0000
@@ -60,6 +60,21 @@
  */
 
 /**************************************************************************
+ * 				timeGetTime    [MMSYSTEM.607]
+ * 				timeGetTime    [WINMM.@]
+ */
+DWORD WINAPI timeGetTime(void)
+{
+    /* FIXME: releasing the win16 lock here is a temporary hack (I hope)
+     * that lets mciavi.drv run correctly
+     */
+    DWORD count;
+    ReleaseThunkLock(&count);
+    RestoreThunkLock(count);
+    return TIME_GetTime();
+}
+
+/**************************************************************************
  * 			DllEntryPoint (MMSYSTEM.2046)
  *
  * MMSYSTEM DLL entry point
Index: time.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/time.c,v
retrieving revision 1.22
diff -u -r1.22 time.c
--- time.c	9 Nov 2003 01:19:58 -0000	1.22
+++ time.c	30 Nov 2003 15:40:00 -0000
@@ -349,17 +349,10 @@
 }
 
 /**************************************************************************
- * 				timeGetTime    [MMSYSTEM.607]
- * 				timeGetTime    [WINMM.@]
+ * 				TIME_GetTime			[internal]
  */
-DWORD WINAPI timeGetTime(void)
+DWORD TIME_GetTime(void)
 {
-    /* FIXME: releasing the win16 lock here is a temporary hack (I hope)
-     * that lets mciavi.drv run correctly
-     */
-    DWORD count;
-    ReleaseThunkLock(&count);
-    RestoreThunkLock(count);
     TIME_MMTimeStart();
     return WINMM_IData->mmSysTimeMS;
 }
Index: winemm.h
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winemm.h,v
retrieving revision 1.48
diff -u -r1.48 winemm.h
--- winemm.h	9 Nov 2003 01:19:58 -0000	1.48
+++ winemm.h	30 Nov 2003 15:40:00 -0000
@@ -283,6 +283,7 @@
                                  LPARAM lParam2, enum mmioProcType type);
 LPWINE_MMIO     MMIO_Get(HMMIO h);
 
+DWORD		TIME_GetTime(void);
 WORD            TIME_SetEventInternal(UINT wDelay, UINT wResol, LPTIMECALLBACK lpFunc,
                                       DWORD dwUser, UINT wFlags);
 void    	TIME_MMTimeStart(void);
Index: winmm.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winmm.c,v
retrieving revision 1.25
diff -u -r1.25 winmm.c
--- winmm.c	26 Nov 2003 03:39:13 -0000	1.25
+++ winmm.c	30 Nov 2003 15:40:02 -0000
@@ -133,6 +133,15 @@
 }
 
 /**************************************************************************
+ * 				timeGetTime    [MMSYSTEM.607]
+ * 				timeGetTime    [WINMM.@]
+ */
+DWORD WINAPI timeGetTime(void)
+{
+    return TIME_GetTime();
+}
+
+/**************************************************************************
  *		DllMain (WINMM.init)
  *
  * WINMM DLL entry point
