Marcus Meissner : user32: Fixed sizeof() to MultiByteToWideChar.

Alexandre Julliard julliard at winehq.org
Wed Nov 6 11:34:44 CST 2013


Module: wine
Branch: master
Commit: 6f3d942fa4800b6cfd3b96e2458d39542299805b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6f3d942fa4800b6cfd3b96e2458d39542299805b

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Nov  5 21:54:27 2013 +0100

user32: Fixed sizeof() to MultiByteToWideChar.

---

 dlls/user32/tests/class.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index c8d6a26..1d35832 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -1041,7 +1041,7 @@ static void test_comctl32_class( const char *name )
     ret = GetClassInfoA( 0, name, &wcA );
     ok( ret || broken(!ret) /* <= winxp */, "GetClassInfoA failed for %s\n", name );
     if (!ret) return;
-    MultiByteToWideChar( CP_ACP, 0, name, -1, nameW, sizeof(nameW) );
+    MultiByteToWideChar( CP_ACP, 0, name, -1, nameW, sizeof(nameW)/sizeof(WCHAR) );
     ret = GetClassInfoW( 0, nameW, &wcW );
     ok( ret, "GetClassInfoW failed for %s\n", name );
     module = GetModuleHandleA( "comctl32" );




More information about the wine-cvs mailing list