1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

DirectPlay: Remove already-initialised check in SPInit()

I have no idea why I implemented this check in the first place, the Microsoft
implementation doesn't do it and I think it might cause problems.
This commit is contained in:
Daniel Collins 2015-08-19 21:46:54 +01:00
parent a0b4abd53e
commit 95e492f653

View File

@ -523,22 +523,6 @@ HRESULT WINAPI SPInit(LPSPINITDATA data) {
log_printf(LOG_DEBUG, "SPInit: %p (lpAddress = %p, dwAddressSize = %u)", data->lpISP, data->lpAddress, (unsigned int)(data->dwAddressSize));
{
struct sp_data *sp_data;
DWORD size;
HRESULT r = IDirectPlaySP_GetSPData(data->lpISP, (void**)&sp_data, &size, DPGET_LOCAL);
if(r != DP_OK) {
log_printf(LOG_ERROR, "SPInit: GetSPData: %d", r);
return DPERR_UNAVAILABLE;
}
if(sp_data) {
log_printf(LOG_DEBUG, "SPInit: Already initialised, returning DP_OK");
return DP_OK;
}
}
struct sp_data sp_data;
if(!InitializeCriticalSectionAndSpinCount(&(sp_data.lock), 0x80000000)) {