quartz: StringFromGUID2 gets character counts, not bytes.

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2018-07-04 09:57:58 +02:00 committed by Alexandre Julliard
parent 962b31c80b
commit 105e3c4340
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ static void test_legacy_filter_registration(void)
/* Register* functions need a filter class key to write pin and pin media
* type data to. Create a bogus class key for it. */
CoCreateGuid(&clsid);
StringFromGUID2(&clsid, clsidstring, sizeof(clsidstring));
StringFromGUID2(&clsid, clsidstring, ARRAY_SIZE(clsidstring));
lstrcpyW(key_name, clsidW);
lstrcatW(key_name, clsidstring);
ret = RegCreateKeyExW(HKEY_CLASSES_ROOT, key_name, 0, NULL, 0, KEY_WRITE, NULL, &hkey, NULL);