atl100: Fixed register class names in AtlAxWinInit.

oldstable
Qian Hong 2013-03-15 22:13:06 +08:00 committed by Alexandre Julliard
parent c02bf8817e
commit ef601fcb7e
2 changed files with 9 additions and 4 deletions

View File

@ -86,7 +86,8 @@ static LRESULT CALLBACK AtlAxWin_wndproc( HWND hWnd, UINT wMsg, WPARAM wParam, L
BOOL WINAPI AtlAxWinInit(void)
{
WNDCLASSEXW wcex;
const WCHAR AtlAxWin[] = {'A','t','l','A','x','W','i','n',0};
const WCHAR AtlAxWin100[] = {'A','t','l','A','x','W','i','n','1','0','0',0};
const WCHAR AtlAxWinLic100[] = {'A','t','l','A','x','W','i','n','L','i','c','1','0','0',0};
FIXME("semi-stub\n");
@ -105,7 +106,11 @@ BOOL WINAPI AtlAxWinInit(void)
wcex.hIconSm = 0;
wcex.lpfnWndProc = AtlAxWin_wndproc;
wcex.lpszClassName = AtlAxWin;
wcex.lpszClassName = AtlAxWin100;
if ( !RegisterClassExW( &wcex ) )
return FALSE;
wcex.lpszClassName = AtlAxWinLic100;
if ( !RegisterClassExW( &wcex ) )
return FALSE;

View File

@ -582,12 +582,12 @@ static void test_ax_win(void)
memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWin100, &wcex);
todo_wine ok(ret, "AtlAxWin100 has not registered\n");
ok(ret, "AtlAxWin100 has not registered\n");
memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWinLic100, &wcex);
todo_wine ok(ret, "AtlAxWinLic100 has not registered\n");
ok(ret, "AtlAxWinLic100 has not registered\n");
}
START_TEST(atl)