user32: Fix the number of characters passed to GetClassNameW in ClassTest.

This commit is contained in:
Rob Shearman 2008-02-25 09:02:14 +00:00 committed by Alexandre Julliard
parent 492be1b5e3
commit e154d3b29e
1 changed files with 1 additions and 1 deletions

View File

@ -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),