CVS: winex/dlls/dpnet general.c, 1.10, 1.11 peer.c, 1.17, 1.18

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/dlls/dpnet general.c,1.10,1.11 peer.c,1.17,1.18Update of /var/lib/cvsd/cvsroot/winex/dlls/dpnet
In directory agravaine:/tmp/cvs-serv23545/dlls/dpnet

Modified Files:
	general.c peer.c 
Log Message:
Implement a couple of stubs.



Index: general.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/dpnet/general.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- general.c	3 Sep 2004 11:33:45 -0000	1.10
+++ general.c	30 Mar 2007 21:24:51 -0000	1.11
@@ -82,7 +82,7 @@
         curplayer = curplayer->prev;
         HeapFree(GetProcessHeap(), 0, tempplayer);
     }
-    if (dp8gdData->localPlayer.set)
+    if (dp8gdData->localPlayer.set && dp8gdData->localPlayer.pAddress)
     {
         dp8gdData->localPlayer.pAddress->lpVtbl->Release(dp8gdData->localPlayer.pAddress);
     }

Index: peer.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/dpnet/peer.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- peer.c	3 Sep 2004 11:35:58 -0000	1.17
+++ peer.c	30 Mar 2007 21:24:51 -0000	1.18
@@ -235,6 +235,17 @@
     return S_OK;
 }
 
+HRESULT WINAPI DirectPlay8Peer_GetApplicationDesc(PDIRECTPLAY8PEER iface, 
+                                                      DPN_APPLICATION_DESC *const pAppDescBuffer,
+                                                      DWORD *const pcbDataSize,
+                                                      const DWORD dwFlags)
+
+{
+  /*ICOM_THIS(IDirectPlay8PeerImpl, iface);*/
+  FIXME("(%p): stub\n", iface);
+  return S_OK;
+}
+
 
 static void DPNET_PEER_SetLocalPeerInfo(void *pvIface, void *pvPlayerInfo)
 {
@@ -420,6 +431,17 @@
     return DirectPlay8Communicate_GetSPCaps(&This->dp8gdData, pguidSP, pdpnSPCaps, dwFlags);
 }
 
+HRESULT WINAPI DirectPlay8Peer_TerminateSession(PDIRECTPLAY8PEER iface, 
+                                                void *const pvTerminateData,
+                                                const DWORD dwTerminateDataSize,
+                                                const DWORD dwFlags)
+{
+  /*ICOM_THIS(IDirectPlay8PeerImpl, iface);*/
+  FIXME("(%p): stub\n", iface);
+  return S_OK;
+}
+
+
 HRESULT DPNET_CreateDirectPlay8Peer(IUnknown *pOuter, REFIID riid, LPVOID *ppobj)
 {
     IDirectPlay8PeerImpl *ipDP8P;
@@ -452,7 +474,7 @@
     DirectPlay8Peer_SendTo,
     (void*)0xdead2009, /* GetSendQueueInfo */
     DirectPlay8Peer_Host, /* Host */
-    (void*)0xdead200b, /* GetApplicationDesc */
+    DirectPlay8Peer_GetApplicationDesc, 
     (void*)0xdead200c, /* SetApplicationDesc */
     (void*)0xdead200d, /* CreateGroup */
     (void*)0xdead200e, /* DestroyGroup */
@@ -478,6 +500,6 @@
     DirectPlay8Peer_GetSPCaps,
     (void*)0xdead2023, /* GetConnectionInfo */
     (void*)0xdead2024, /* RegisterLobby */
-    (void*)0xdead2025  /* TerminateSession */
+    DirectPlay8Peer_TerminateSession
 };
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.