mmdevapi/tests: Compile with -D__WINESRC__.

This commit is contained in:
Michael Stefaniuc 2013-10-15 22:15:13 +02:00 committed by Alexandre Julliard
parent 51ce8f254e
commit fc0c0be1a3
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,5 @@
TESTDLL = mmdevapi.dll TESTDLL = mmdevapi.dll
IMPORTS = ole32 version user32 IMPORTS = ole32 version user32
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \ C_SRCS = \
capture.c \ capture.c \

View File

@ -68,24 +68,24 @@ START_TEST(dependency)
goto cleanup; 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); hr = IMMDevice_Activate(dev, &IID_IDirectSound8, CLSCTX_INPROC_SERVER, NULL, (void**)&ds8);
ok(hr == S_OK, "Activating ds8 interface failed: 0x%08x\n", hr); ok(hr == S_OK, "Activating ds8 interface failed: 0x%08x\n", hr);
if (hr == S_OK) 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"); ok(ds8 != NULL, "ds8 pointer is null\n");
} }
if (ds8) if (ds8)
IDirectSound8_Release(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); hr = IMMDevice_Activate(dev, &IID_IBaseFilter, CLSCTX_INPROC_SERVER, NULL, (void**)&bf);
ok(hr == S_OK, "Activating bf failed: 0x%08x\n", hr); ok(hr == S_OK, "Activating bf failed: 0x%08x\n", hr);
if (hr == S_OK) 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"); ok(bf != NULL, "bf pointer is null\n");
if (bf) if (bf)
{ {

View File

@ -36,6 +36,7 @@
#include "unknwn.h" #include "unknwn.h"
#include "uuids.h" #include "uuids.h"
#include "mmdeviceapi.h" #include "mmdeviceapi.h"
#include "mmsystem.h"
#include "audioclient.h" #include "audioclient.h"
#include "audiopolicy.h" #include "audiopolicy.h"