-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2015-01-15 um 12:55 schrieb Alex Henrie:
- DVCOMPRESSIONINFO data[32];
I can't really find any documentation about this. Is there a documented maximum number of elements returned?
- int i, j;
Afaics you can make those unsigned.
- LPWSTR string_loc;
Is the use of the LPFOO type intentional?
- if(GetCompressionTypes(iface, NULL, NULL, NULL, 0) == E_NOTIMPL)
- {
skip("%s: GetCompressionTypes not implemented\n", name);
return;
- }
I think todo_wine ok(0, "GetCompressionTypes not implemented") is better here, but I don't particularly mind since you remove it in the next patch anyway.
ok(data_size > sizeof(DVCOMPRESSIONINFO) && data_size < sizeof(data) - 1,
"%s: tests[%i]: expected data_size between %i and %i got data_size=%i\n",
name, i, sizeof(DVCOMPRESSIONINFO), sizeof(data) - 1, data_size);
data_size is unsigned, you should use %u instead of %i. Same for i and j once you change them to unsigned.
string_loc = (LPWSTR)((char*)data + num_elements * sizeof(DVCOMPRESSIONINFO));
It's interesting that native places the string in the same data blob, but it kinda makes sense. I think (WCHAR *)(data + num_elements) or (WCHAR *)&data[num_elements] should work as well.