Commit e154d3b2 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 492be1b5
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment