Commit ef601fcb authored by Qian Hong's avatar Qian Hong Committed by Alexandre Julliard

atl100: Fixed register class names in AtlAxWinInit.

parent c02bf881
...@@ -86,7 +86,8 @@ static LRESULT CALLBACK AtlAxWin_wndproc( HWND hWnd, UINT wMsg, WPARAM wParam, L ...@@ -86,7 +86,8 @@ static LRESULT CALLBACK AtlAxWin_wndproc( HWND hWnd, UINT wMsg, WPARAM wParam, L
BOOL WINAPI AtlAxWinInit(void) BOOL WINAPI AtlAxWinInit(void)
{ {
WNDCLASSEXW wcex; 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"); FIXME("semi-stub\n");
...@@ -105,7 +106,11 @@ BOOL WINAPI AtlAxWinInit(void) ...@@ -105,7 +106,11 @@ BOOL WINAPI AtlAxWinInit(void)
wcex.hIconSm = 0; wcex.hIconSm = 0;
wcex.lpfnWndProc = AtlAxWin_wndproc; wcex.lpfnWndProc = AtlAxWin_wndproc;
wcex.lpszClassName = AtlAxWin; wcex.lpszClassName = AtlAxWin100;
if ( !RegisterClassExW( &wcex ) )
return FALSE;
wcex.lpszClassName = AtlAxWinLic100;
if ( !RegisterClassExW( &wcex ) ) if ( !RegisterClassExW( &wcex ) )
return FALSE; return FALSE;
......
...@@ -582,12 +582,12 @@ static void test_ax_win(void) ...@@ -582,12 +582,12 @@ static void test_ax_win(void)
memset(&wcex, 0, sizeof(wcex)); memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex); wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWin100, &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)); memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex); wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWinLic100, &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) START_TEST(atl)
......
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