From ab62cd360f611ea2cc806acee044a7ea25773fd8 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Sat, 12 Apr 2008 21:13:59 +0200 Subject: [PATCH] dpnhpast: Implement a stub for DirectPlayNATHelpCreate. --- dlls/dpnhpast/dpnhpast.spec | 2 +- dlls/dpnhpast/main.c | 7 +++---- include/dpnathlp.h | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dlls/dpnhpast/dpnhpast.spec b/dlls/dpnhpast/dpnhpast.spec index 67fb171001e..ea61468ac87 100644 --- a/dlls/dpnhpast/dpnhpast.spec +++ b/dlls/dpnhpast/dpnhpast.spec @@ -1,4 +1,4 @@ -1 stub DirectPlayNATHelpCreate +1 stdcall DirectPlayNATHelpCreate(ptr ptr) @ stdcall -private DllCanUnloadNow() @ stdcall -private DllGetClassObject(ptr ptr ptr) diff --git a/dlls/dpnhpast/main.c b/dlls/dpnhpast/main.c index 6ec2e6f621d..74427babfbb 100644 --- a/dlls/dpnhpast/main.c +++ b/dlls/dpnhpast/main.c @@ -55,12 +55,11 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) * * */ -#if 0 -HRESULT WINAPI DPNHPAST_DirectPlayNATHelpCreate(void) +HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, PVOID *ppvInterface) { - /* @stub in .spec */ + TRACE("(%p, %p) stub\n", pIID, ppvInterface); + return E_NOTIMPL; } -#endif /****************************************************************** diff --git a/include/dpnathlp.h b/include/dpnathlp.h index 68c04560b0d..c1fa3c917ba 100644 --- a/include/dpnathlp.h +++ b/include/dpnathlp.h @@ -23,7 +23,7 @@ extern "C" { #endif -HRESULT DirectPlayNATHelpCreate(const PGUID pIID, void ** ppvInterface); +HRESULT DirectPlayNATHelpCreate(LPCGUID pIID, LPVOID *ppvInterface); DEFINE_GUID(CLSID_DirectPlayNATHelpUPnP, 0xb9c2e9c4,0x68c1,0x4d42,0xa7,0xa1,0xe7,0x6a,0x26,0x98,0x2a,0xd6); DEFINE_GUID(CLSID_DirectPlayNATHelpPAST, 0x963ab779,0x16a1,0x477c,0xa3,0x6d,0xcb,0x5e,0x71,0x19,0x38,0xf7);