mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Use service provider GUID defined in dplay.h.
This commit is contained in:
parent
3c9d1870c8
commit
eec97eee76
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
/* TODO: ASYNC I/O!! */
|
/* TODO: ASYNC I/O!! */
|
||||||
|
|
||||||
|
#define INITGUID
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <dplaysp.h>
|
#include <dplaysp.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
@ -41,13 +43,6 @@ struct sp_data_cont {
|
|||||||
HANDLE mutex;
|
HANDLE mutex;
|
||||||
};
|
};
|
||||||
|
|
||||||
const GUID IPX_GUID = {
|
|
||||||
0x685BC400,
|
|
||||||
0x9D2C,
|
|
||||||
0x11CF,
|
|
||||||
{0xA9, 0xCD, 0x00, 0xAA, 0x00, 0x68, 0x86, 0xE3}
|
|
||||||
};
|
|
||||||
|
|
||||||
#define DISCOVERY_SOCKET 42367
|
#define DISCOVERY_SOCKET 42367
|
||||||
#define API_HEADER_SIZE sizeof(struct sockaddr_ipx)
|
#define API_HEADER_SIZE sizeof(struct sockaddr_ipx)
|
||||||
|
|
||||||
@ -364,7 +359,7 @@ static HRESULT WINAPI IPX_ShutdownEx(LPDPSP_SHUTDOWNDATA data) {
|
|||||||
HRESULT WINAPI r_SPInit(LPSPINITDATA);
|
HRESULT WINAPI r_SPInit(LPSPINITDATA);
|
||||||
|
|
||||||
HRESULT WINAPI SPInit(LPSPINITDATA data) {
|
HRESULT WINAPI SPInit(LPSPINITDATA data) {
|
||||||
if(!IsEqualGUID(data->lpGuid, &IPX_GUID)) {
|
if(!IsEqualGUID(data->lpGuid, &DPSPGUID_IPX)) {
|
||||||
return r_SPInit(data);
|
return r_SPInit(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user