Skip the Unicode tests (effectively all tests currently) on Win9x.
This commit is contained in:
parent
2a93f8505c
commit
21d92f8c8a
@ -38,7 +38,7 @@ LRESULT WINAPI ClassTest_WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPa
|
|||||||
*
|
*
|
||||||
* WinMain
|
* WinMain
|
||||||
*/
|
*/
|
||||||
BOOL ClassTest(HINSTANCE hInstance, BOOL global)
|
void ClassTest(HINSTANCE hInstance, BOOL global)
|
||||||
{
|
{
|
||||||
WNDCLASSW cls, wc;
|
WNDCLASSW cls, wc;
|
||||||
WCHAR className[] = {'T','e','s','t','C','l','a','s','s',0};
|
WCHAR className[] = {'T','e','s','t','C','l','a','s','s',0};
|
||||||
@ -46,6 +46,7 @@ BOOL ClassTest(HINSTANCE hInstance, BOOL global)
|
|||||||
HWND hTestWnd;
|
HWND hTestWnd;
|
||||||
DWORD i;
|
DWORD i;
|
||||||
WCHAR str[20];
|
WCHAR str[20];
|
||||||
|
ATOM classatom;
|
||||||
|
|
||||||
cls.style = CS_HREDRAW | CS_VREDRAW | (global?CS_GLOBALCLASS:0);
|
cls.style = CS_HREDRAW | CS_VREDRAW | (global?CS_GLOBALCLASS:0);
|
||||||
cls.lpfnWndProc = ClassTest_WndProc;
|
cls.lpfnWndProc = ClassTest_WndProc;
|
||||||
@ -58,8 +59,10 @@ BOOL ClassTest(HINSTANCE hInstance, BOOL global)
|
|||||||
cls.lpszMenuName = 0;
|
cls.lpszMenuName = 0;
|
||||||
cls.lpszClassName = className;
|
cls.lpszClassName = className;
|
||||||
|
|
||||||
ok(RegisterClassW (&cls) ,
|
classatom=RegisterClassW(&cls);
|
||||||
"failed to register class");
|
if (!classatom && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||||
|
return;
|
||||||
|
ok(classatom, "failed to register class");
|
||||||
|
|
||||||
ok(!RegisterClassW (&cls),
|
ok(!RegisterClassW (&cls),
|
||||||
"RegisterClass of the same class should fail for the second time");
|
"RegisterClass of the same class should fail for the second time");
|
||||||
@ -180,7 +183,7 @@ BOOL ClassTest(HINSTANCE hInstance, BOOL global)
|
|||||||
ok(UnregisterClassW(className, hInstance),
|
ok(UnregisterClassW(className, hInstance),
|
||||||
"UnregisterClass() failed");
|
"UnregisterClass() failed");
|
||||||
|
|
||||||
return TRUE;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
START_TEST(class)
|
START_TEST(class)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user