DirectPlay8Peer_Close stub patch
Clarence Risher <[email protected]>
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <[email protected]> |
Attached is a patch that includes a stub for the DirectPlay8Peer_Close function, as well as a small typo (I assume) fix in another stub. I hope I have formatted this correctly and such, please let me know if there is anything further I need to do. This patch has gotten me beyond the crash point with Warlords Battlecry 3, to an exception that I have been told is related to copy protection. In this light I am hoping that someone with access to the copy protection code and this game can verify that the game does work and hopefully get this stub into a binary release.
DirectPlay8Peer_Close_stub.patch
(text/plain, 1.5 KB)
? DirectPlay8Peer_Close_stub.patch
Index: peer.c
===================================================================
RCS file: /cvsroot/winex/dlls/dpnet/peer.c,v
retrieving revision 1.13
diff -u -r1.13 peer.c
--- peer.c 1 Apr 2004 12:09:26 -0000 1.13
+++ peer.c 24 May 2004 06:13:21 -0000
@@ -327,6 +327,12 @@
return E_NOINTERFACE;
}
+HRESULT WINAPI DirectPlay8Peer_Close(const DWORD dwFlags)
+{
+ FIXME("(0x%08lx): stub - SPARR \n", dwFlags);
+ return S_OK;
+}
+
static ICOM_VTABLE(IDirectPlay8Peer) directPlay8PeerVT =
{
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
@@ -354,7 +360,8 @@
DirectPlay8Peer_GetPeerInfo,
(void*)0xdead2017, /* GetPeerAddress */
(void*)0xdead2018, /* GetLocalHostAddresses */
- (void*)0xdead2019, /* Close */
+ DirectPlay8Peer_Close,
+// (void*)0xdead2019, /* Close */
DirectPlay8Peer_EnumHosts,
(void*)0xdead201b, /* DestroyPeer */
DirectPlay8Peer_ReturnBuffer,
Index: threadpool.c
===================================================================
RCS file: /cvsroot/winex/dlls/dpnet/threadpool.c,v
retrieving revision 1.8
diff -u -r1.8 threadpool.c
--- threadpool.c 20 Apr 2004 03:28:29 -0000 1.8
+++ threadpool.c 24 May 2004 06:13:21 -0000
@@ -542,7 +542,7 @@
DirectPlay8ThreadPool_Close(PDIRECTPLAY8THREADPOOL iface,
const DWORD dwFlags)
{
- FIXME("(%p)->(%08lx\n): stub\n", iface, dwFlags);
+ FIXME("(%p)->(%08lx): stub\n", iface, dwFlags);
return S_OK;
}