-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
hr = IDirectPlay8Address_GetSP(localaddr, &guidsp);
ok(hr == DPNERR_DOESNOTEXIST, "got 0x%08x\n", hr);
For the sake of completion I'd test setting GUID_NULL, IID_IUnknown and something nonsensical like IID_IDirectDrawGammaControl (or maybe something you have access to without additional headers like IID_IDirectPlay8Address).
Some style nitpicks follow. If you end up becoming the de-facto maintainer of dplay it's up to you how important they are:
- sprintf(buf,
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
guid->Data1, guid->Data2, guid->Data3,
guid->Data4[0], guid->Data4[1], guid->Data4[2], guid->Data4[3],
guid->Data4[4], guid->Data4[5], guid->Data4[6], guid->Data4[7]);
In the d3d code we use 8 space indentations. You may want to follow that.
Also, there's debugstr_guid in wine/debug.h. It seems you're aware of that and used your own functions because wine/debug.h doesn't work in the tests. Is this correct?
- if(!pguidSP)
- return DPNERR_INVALIDPOINTER;
...
- if( SUCCEEDED(hr) )
- {
...
- if (hr != S_OK)
The whitespaces around the () are inconsistent.