-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2015-02-18 um 22:41 schrieb Mark Jansen:
- char preparedbuffer[] = {
0x04, 0x01, 0x34, 0x00, 0x00, 0x00, 0x56, 0x00, 0x53, 0x00, 0x5f, 0x00, 0x56, 0x00, 0x45, 0x00,
0x52, 0x00, 0x53, 0x00, 0x49, 0x00, 0x4f, 0x00, 0x4e, 0x00, 0x5f, 0x00, 0x49, 0x00, 0x4e, 0x00,
0x46, 0x00, 0x4f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbd, 0x04, 0xef, 0xfe, 0x00, 0x00, 0x01, 0x00,
0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
...
Is it possible to put the test data into dlls/version/test/version.rc in plain text instead of using an unreadable blob? If not, please add a comment to explain what is in the blob.
- ret = VerQueryValueA(preparedbuffer, "StringFileInfo", (LPVOID*)&p, &len);
- ok(ret, "VerQueryValue error %u\n", GetLastError());
- ok(len == 0, "VerQueryValue returned %u, expected 0\n", len);
- ok(p != (char *)0xdeadbeef, "not expected 0xdeadbeef\n");
Does p point to a 0 byte now? (i.e., ok(!*p, "Expected a terminated string\n"); or something like this.)