Re: [v4 PATCH 1/4] mfplat: Implement MFTRegister
4 May
2017
4 May
'17
3:23 p.m.
Alistair Leslie-Hughes <leslie_alistair(a)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);
Why do you need to make a copy?
+ if (coutput && output_types) + { + size = cinput * sizeof(MFT_REGISTER_TYPE_INFO);
I'm guessing you want coutput here. -- Alexandre Julliard julliard(a)winehq.org
3146
Age (days ago)
3146
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard