Rob Shearman : user32: Fix the number of characters passed to GetClassNameW in ClassTest.
Module: wine Branch: master Commit: e154d3b29e582972e05f219f354d53e404a6d78b URL: http://source.winehq.org/git/wine.git/?a=commit;h=e154d3b29e582972e05f219f35... Author: Rob Shearman <rob(a)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),
participants (1)
-
Alexandre Julliard