-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2014-04-08 12:12, schrieb Alistair Leslie-Hughes:
Hi, Any feedback would be good.
A few mostly minor things come to my mind.
- if(!pguidSP)
return DPNERR_INVALIDPOINTER;
...
ok(hr == DPNERR_DOESNOTEXIST, "got 0x%08x\n", hr);
...
- ok( hr == S_OK, "failed to init com\n");
- if (hr != S_OK)
Style inconsistencies.
- hr = CoCreateInstance( &CLSID_DirectPlay8Address, NULL, CLSCTX_ALL, &IID_IDirectPlay8Address, (LPVOID*)&localaddr);
Please avoid LPVOID and similar pointer types. Just use void **.
hr = IDirectPlay8Address_SetSP(localaddr, NULL);
ok(hr == DPNERR_INVALIDPOINTER, "got 0x%08x\n", hr);
hr = IDirectPlay8Address_SetSP(localaddr, &IID_Random);
ok(hr == S_OK, "got 0x%08x\n", hr);
Since you're using GUID_NULL as a way to signal that no guid is set it would be a good idea to try to pass it to SetSP and see if you still get DPNERR_DOESNOTEXIST when you call GetSP.
Otherwise this looks good to me.