Marcus Meissner : quartz: StringFromGUID2 gets character counts, not bytes.

Alexandre Julliard julliard at winehq.org
Wed Jul 4 15:32:33 CDT 2018


Module: wine
Branch: master
Commit: 105e3c434087345be6c4abd837dc4802ded6bf9d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=105e3c434087345be6c4abd837dc4802ded6bf9d

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Jul  4 09:57:58 2018 +0200

quartz: StringFromGUID2 gets character counts, not bytes.

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 7b6a018..2f82ce0 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);




More information about the wine-cvs mailing list