Kai Blin : dpnhpast: Implement a stub for DirectPlayNATHelpCreate.

Alexandre Julliard julliard at winehq.org
Mon Apr 14 07:14:23 CDT 2008


Module: wine
Branch: master
Commit: ab62cd360f611ea2cc806acee044a7ea25773fd8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ab62cd360f611ea2cc806acee044a7ea25773fd8

Author: Kai Blin <kai.blin at gmail.com>
Date:   Sat Apr 12 21:13:59 2008 +0200

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 67fb171..ea61468 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 6ec2e6f..74427ba 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 68c0456..c1fa3c9 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);




More information about the wine-cvs mailing list