[PATCH] oleaut32: incorrect sizeof() to MultiByteToWideChar

Marcus Meissner marcus at jet.franken.de
Wed Jan 29 13:14:38 CST 2014


A lower MultiByteToWideChar uses 40 bytes as size for this array.
Use either 39 or 40 bytes ... just use 40 now.
---
 dlls/oleaut32/tests/typelib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c
index ee06182..3f6429e 100644
--- a/dlls/oleaut32/tests/typelib.c
+++ b/dlls/oleaut32/tests/typelib.c
@@ -3981,7 +3981,7 @@ static void test_dump_typelib(const char *name)
         /* compare type uuid */
         if (ti->uuid && *ti->uuid)
         {
-            WCHAR guidW[39] = {0};
+            WCHAR guidW[40] = {0};
             ITypeInfo *typeinfo2;
             HRESULT hr;
             GUID guid;
-- 
1.8.4.5




More information about the wine-patches mailing list