mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:37:17 +00:00
user32/tests: Run the tests again on Win95.
This commit is contained in:
parent
f2c91f0d3c
commit
1b50493ba6
|
@ -38,6 +38,15 @@ struct edit_notify {
|
||||||
|
|
||||||
static struct edit_notify notifications;
|
static struct edit_notify notifications;
|
||||||
|
|
||||||
|
static BOOL (WINAPI *pEndMenu) (void);
|
||||||
|
|
||||||
|
static void init_function_pointers(void)
|
||||||
|
{
|
||||||
|
HMODULE hdll = GetModuleHandleA("user32");
|
||||||
|
|
||||||
|
pEndMenu = (void*)GetProcAddress(hdll, "EndMenu");
|
||||||
|
}
|
||||||
|
|
||||||
static INT_PTR CALLBACK multi_edit_dialog_proc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
|
static INT_PTR CALLBACK multi_edit_dialog_proc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
|
||||||
{
|
{
|
||||||
static int num_ok_commands = 0;
|
static int num_ok_commands = 0;
|
||||||
|
@ -2099,7 +2108,7 @@ static LRESULT CALLBACK edit4_wnd_procA(HWND hWnd, UINT msg, WPARAM wParam, LPAR
|
||||||
if (hWnd != (HWND)lParam)
|
if (hWnd != (HWND)lParam)
|
||||||
{
|
{
|
||||||
got_wm_capturechanged = 1;
|
got_wm_capturechanged = 1;
|
||||||
EndMenu();
|
pEndMenu();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2427,6 +2436,8 @@ static void test_dialogmode(void)
|
||||||
|
|
||||||
START_TEST(edit)
|
START_TEST(edit)
|
||||||
{
|
{
|
||||||
|
init_function_pointers();
|
||||||
|
|
||||||
hinst = GetModuleHandleA(NULL);
|
hinst = GetModuleHandleA(NULL);
|
||||||
assert(RegisterWindowClasses());
|
assert(RegisterWindowClasses());
|
||||||
|
|
||||||
|
@ -2452,7 +2463,10 @@ START_TEST(edit)
|
||||||
test_child_edit_wmkeydown();
|
test_child_edit_wmkeydown();
|
||||||
test_fontsize();
|
test_fontsize();
|
||||||
test_dialogmode();
|
test_dialogmode();
|
||||||
test_contextmenu_focus();
|
if (pEndMenu)
|
||||||
|
test_contextmenu_focus();
|
||||||
|
else
|
||||||
|
win_skip("EndMenu is not available\n");
|
||||||
|
|
||||||
UnregisterWindowClasses();
|
UnregisterWindowClasses();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue