Rob Shearman : user32: Fix the number of characters passed to GetClassNameW in ClassTest.
Alexandre Julliard
julliard at winehq.org
Mon Feb 25 06:51:45 CST 2008
Module: wine
Branch: master
Commit: e154d3b29e582972e05f219f354d53e404a6d78b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e154d3b29e582972e05f219f354d53e404a6d78b
Author: Rob Shearman <rob at codeweavers.com>
Date: Mon Feb 25 09:02:14 2008 +0000
user32: Fix the number of characters passed to GetClassNameW in ClassTest.
---
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 aa2c60a..91898e1 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -134,7 +134,7 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
}
/* check GetClassName */
- i = GetClassNameW(hTestWnd, str, sizeof(str));
+ i = GetClassNameW(hTestWnd, str, sizeof(str)/sizeof(str[0]));
ok(i == lstrlenW(className),
"GetClassName returned incorrect length\n");
ok(!lstrcmpW(className,str),
More information about the wine-cvs
mailing list