mmdevapi/tests: Compile with -D__WINESRC__.

Michael Stefaniuc mstefani at redhat.de
Tue Oct 15 15:15:13 CDT 2013


---
 dlls/mmdevapi/tests/Makefile.in  | 1 -
 dlls/mmdevapi/tests/dependency.c | 8 ++++----
 dlls/mmdevapi/tests/render.c     | 1 +
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/mmdevapi/tests/Makefile.in b/dlls/mmdevapi/tests/Makefile.in
index 137cb74..532e535 100644
--- a/dlls/mmdevapi/tests/Makefile.in
+++ b/dlls/mmdevapi/tests/Makefile.in
@@ -1,6 +1,5 @@
 TESTDLL   = mmdevapi.dll
 IMPORTS   = ole32 version user32
-EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	capture.c \
diff --git a/dlls/mmdevapi/tests/dependency.c b/dlls/mmdevapi/tests/dependency.c
index 2408216..6744b63 100644
--- a/dlls/mmdevapi/tests/dependency.c
+++ b/dlls/mmdevapi/tests/dependency.c
@@ -68,24 +68,24 @@ START_TEST(dependency)
         goto cleanup;
     }
 
-    ok(!GetModuleHandle("dsound.dll"), "dsound.dll was already loaded!\n");
+    ok(!GetModuleHandleA("dsound.dll"), "dsound.dll was already loaded!\n");
 
     hr = IMMDevice_Activate(dev, &IID_IDirectSound8, CLSCTX_INPROC_SERVER, NULL, (void**)&ds8);
     ok(hr == S_OK, "Activating ds8 interface failed: 0x%08x\n", hr);
     if (hr == S_OK)
     {
-        ok(GetModuleHandle("dsound.dll") != NULL, "dsound.dll not loaded!\n");
+        ok(GetModuleHandleA("dsound.dll") != NULL, "dsound.dll not loaded!\n");
         ok(ds8 != NULL, "ds8 pointer is null\n");
     }
     if (ds8)
         IDirectSound8_Release(ds8);
 
-    ok(!GetModuleHandle("quartz.dll"), "quartz.dll was already loaded!\n");
+    ok(!GetModuleHandleA("quartz.dll"), "quartz.dll was already loaded!\n");
     hr = IMMDevice_Activate(dev, &IID_IBaseFilter, CLSCTX_INPROC_SERVER, NULL, (void**)&bf);
     ok(hr == S_OK, "Activating bf failed: 0x%08x\n", hr);
     if (hr == S_OK)
     {
-        ok(GetModuleHandle("quartz.dll") != NULL, "quartz.dll not loaded!\n");
+        ok(GetModuleHandleA("quartz.dll") != NULL, "quartz.dll not loaded!\n");
         ok(bf != NULL, "bf pointer is null\n");
         if (bf)
         {
diff --git a/dlls/mmdevapi/tests/render.c b/dlls/mmdevapi/tests/render.c
index 0ee7c8c..5d50379 100644
--- a/dlls/mmdevapi/tests/render.c
+++ b/dlls/mmdevapi/tests/render.c
@@ -36,6 +36,7 @@
 #include "unknwn.h"
 #include "uuids.h"
 #include "mmdeviceapi.h"
+#include "mmsystem.h"
 #include "audioclient.h"
 #include "audiopolicy.h"
 
-- 
1.8.3.1



More information about the wine-patches mailing list