dpnet: Correct usage of memcpy in GetComponentByName.
This commit is contained in:
parent
b779dee768
commit
63c7fd2a63
|
@ -348,13 +348,13 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetComponentByName(IDirectPlay8Add
|
|||
memcpy(pvBuffer, &entry->data.guid, sizeof(GUID));
|
||||
break;
|
||||
case DPNA_DATATYPE_STRING:
|
||||
memcpy(pvBuffer, &entry->data.string, entry->size);
|
||||
memcpy(pvBuffer, entry->data.string, entry->size);
|
||||
break;
|
||||
case DPNA_DATATYPE_STRING_ANSI:
|
||||
memcpy(pvBuffer, &entry->data.ansi, entry->size);
|
||||
memcpy(pvBuffer, entry->data.ansi, entry->size);
|
||||
break;
|
||||
case DPNA_DATATYPE_BINARY:
|
||||
memcpy(pvBuffer, &entry->data.binary, entry->size);
|
||||
memcpy(pvBuffer, entry->data.binary, entry->size);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ static void address_addcomponents(void)
|
|||
hr = IDirectPlay8Address_GetComponentByName(localaddr, DPNA_KEY_HOSTNAME, buffer, &size, &type);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
ok(type == DPNA_DATATYPE_STRING, "incorrect type %d\n", type);
|
||||
todo_wine ok(!lstrcmpW(buffer, localhost), "Invalid string: %s\n", wine_dbgstr_w(buffer));
|
||||
ok(!lstrcmpW(buffer, localhost), "Invalid string: %s\n", wine_dbgstr_w(buffer));
|
||||
|
||||
hr = IDirectPlay8Address_AddComponent(localaddr, DPNA_KEY_PORT, &port, sizeof(DWORD)+2, DPNA_DATATYPE_DWORD);
|
||||
ok(hr == DPNERR_INVALIDPARAM, "got 0x%08x\n", hr);
|
||||
|
|
Loading…
Reference in New Issue