Andrew Eikum : xapofx: Implement CreateFX.
Module: wine Branch: master Commit: ad4ba76eb044a75b2a86a7738502a266caef2292 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad4ba76eb044a75b2a86a77385... Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Mon Oct 5 11:33:13 2015 -0500 xapofx: Implement CreateFX. Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> --- dlls/xapofx1_1/xapofx1_1.spec | 2 +- dlls/xapofx1_3/xapofx1_3.spec | 2 +- dlls/xapofx1_4/xapofx1_4.spec | 2 +- dlls/xapofx1_5/Makefile.in | 1 + dlls/xapofx1_5/main.c | 11 +++++++++++ dlls/xapofx1_5/xapofx1_5.spec | 2 +- 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/dlls/xapofx1_1/xapofx1_1.spec b/dlls/xapofx1_1/xapofx1_1.spec index 33269e3..bc17511 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 33269e3..bc17511 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 33269e3..bc17511 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 e0c6e9a..d243802 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 1b223ad..4865d31 100644 --- a/dlls/xapofx1_5/main.c +++ b/dlls/xapofx1_5/main.c @@ -19,8 +19,13 @@ #include <stdarg.h> +#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 33269e3..9b768cb 100644 --- a/dlls/xapofx1_5/xapofx1_5.spec +++ b/dlls/xapofx1_5/xapofx1_5.spec @@ -1 +1 @@ -@ stub CreateFX +@ cdecl CreateFX(ptr ptr)
participants (1)
-
Alexandre Julliard