From 766ef669eb2e4ea7c25e0b947637e97882c50955 Mon Sep 17 00:00:00 2001
From: Eric Pouech <pouech-eric@wanadoo.fr>
Date: Fri, 12 Sep 2003 00:24:16 +0000
Subject: [PATCH] Moved some MM internal definition to internal include files.

---
 dlls/msvideo/msvideo_main.c | 2 +-
 dlls/winmm/winemm.h         | 6 ++++++
 include/mmsystem.h          | 7 -------
 3 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/dlls/msvideo/msvideo_main.c b/dlls/msvideo/msvideo_main.c
index deab5fd853a..d0f6ed18553 100644
--- a/dlls/msvideo/msvideo_main.c
+++ b/dlls/msvideo/msvideo_main.c
@@ -322,7 +322,7 @@ HIC VFWAPI ICOpen(DWORD fccType, DWORD fccHandler, UINT wMode)
         if (!hdrv) 
             return 0; 
     }
-    bIs16 = GetDriverFlags(hdrv) & WINE_GDF_16BIT;
+    bIs16 = GetDriverFlags(hdrv) & 0x10000000; /* undocumented flag: WINE_GDF_16BIT */
 
     if (bIs16 && !pFnCallTo16)
     {
diff --git a/dlls/winmm/winemm.h b/dlls/winmm/winemm.h
index ed288cd482c..95665024e07 100644
--- a/dlls/winmm/winemm.h
+++ b/dlls/winmm/winemm.h
@@ -340,3 +340,9 @@ void 		MMSYSTEM_MMTIME32to16(LPMMTIME16 mmt16, const MMTIME* mmt32);
 #define HWAVE_16(h32)		(LOWORD(h32))
 #define HWAVEIN_16(h32)		(LOWORD(h32))
 #define HWAVEOUT_16(h32)	(LOWORD(h32))
+
+/* GetDriverFlags() returned bits is not documented (nor the call itself)
+ * Here are Wine only definitions of the bits
+ */
+#define WINE_GDF_EXIST	0x80000000
+#define WINE_GDF_16BIT	0x10000000
diff --git a/include/mmsystem.h b/include/mmsystem.h
index d74a2305785..7d68f286d67 100644
--- a/include/mmsystem.h
+++ b/include/mmsystem.h
@@ -229,13 +229,6 @@ LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message,
 HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
 
 DWORD	WINAPI GetDriverFlags(HDRVR hDriver);
-#ifdef __WINESRC__
-/* this call (GetDriverFlags) is not documented, nor the flags returned.
- * here are Wine only definitions
- */
-#define WINE_GDF_EXIST	0x80000000
-#define WINE_GDF_16BIT	0x10000000
-#endif
 
 typedef void (CALLBACK *LPDRVCALLBACK) (HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
 
-- 
GitLab