Alistair Leslie-Hughes leslie_alistair@hotmail.com writes:
- if (cinput && input_types)
- {
size = cinput * sizeof(MFT_REGISTER_TYPE_INFO);
types = HeapAlloc(GetProcessHeap(), 0, size);
if (!types) goto err;
memcpy(types, input_types, size);
ret = RegSetValueExW(hclsid, inputtypesW, 0, REG_BINARY, (BYTE *)types, size);
HeapFree(GetProcessHeap(), 0, types);
if (ret) goto err;
Again, why do you need a copy?