[PATCH] quartz: StringFromGUID2 gets character counts, not bytes
Marcus Meissner
marcus at jet.franken.de
Wed Jul 4 02:57:58 CDT 2018
Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
---
dlls/quartz/tests/filtermapper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/quartz/tests/filtermapper.c b/dlls/quartz/tests/filtermapper.c
index 7b6a018ece..2f82ce0ccf 100644
--- a/dlls/quartz/tests/filtermapper.c
+++ b/dlls/quartz/tests/filtermapper.c
@@ -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);
--
2.18.0
More information about the wine-devel
mailing list