diff --git a/dlls/xapofx1_1/xapofx1_1.spec b/dlls/xapofx1_1/xapofx1_1.spec index 33269e36d25..bc17511db26 100644 --- a/dlls/xapofx1_1/xapofx1_1.spec +++ b/dlls/xapofx1_1/xapofx1_1.spec @@ -1 +1 @@ -@ stub CreateFX +@ cdecl CreateFX(ptr ptr) xapofx1_5.CreateFX diff --git a/dlls/xapofx1_3/xapofx1_3.spec b/dlls/xapofx1_3/xapofx1_3.spec index 33269e36d25..bc17511db26 100644 --- a/dlls/xapofx1_3/xapofx1_3.spec +++ b/dlls/xapofx1_3/xapofx1_3.spec @@ -1 +1 @@ -@ stub CreateFX +@ cdecl CreateFX(ptr ptr) xapofx1_5.CreateFX diff --git a/dlls/xapofx1_4/xapofx1_4.spec b/dlls/xapofx1_4/xapofx1_4.spec index 33269e36d25..bc17511db26 100644 --- a/dlls/xapofx1_4/xapofx1_4.spec +++ b/dlls/xapofx1_4/xapofx1_4.spec @@ -1 +1 @@ -@ stub CreateFX +@ cdecl CreateFX(ptr ptr) xapofx1_5.CreateFX diff --git a/dlls/xapofx1_5/Makefile.in b/dlls/xapofx1_5/Makefile.in index e0c6e9aa217..d2438026b07 100644 --- a/dlls/xapofx1_5/Makefile.in +++ b/dlls/xapofx1_5/Makefile.in @@ -1,4 +1,5 @@ MODULE = xapofx1_5.dll +IMPORTS = ole32 C_SRCS = \ main.c diff --git a/dlls/xapofx1_5/main.c b/dlls/xapofx1_5/main.c index 1b223adc119..4865d31fe03 100644 --- a/dlls/xapofx1_5/main.c +++ b/dlls/xapofx1_5/main.c @@ -19,8 +19,13 @@ #include +#include "initguid.h" #include "windef.h" #include "winbase.h" +#include "compobj.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(xaudio2); BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { @@ -35,3 +40,9 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) return TRUE; } + +HRESULT CDECL CreateFX(REFCLSID clsid, IUnknown **out) +{ + TRACE("%s %p\n", debugstr_guid(clsid), out); + return CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void**)out); +} diff --git a/dlls/xapofx1_5/xapofx1_5.spec b/dlls/xapofx1_5/xapofx1_5.spec index 33269e36d25..9b768cb389f 100644 --- a/dlls/xapofx1_5/xapofx1_5.spec +++ b/dlls/xapofx1_5/xapofx1_5.spec @@ -1 +1 @@ -@ stub CreateFX +@ cdecl CreateFX(ptr ptr)