Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
84a35f53
Commit
84a35f53
authored
Dec 06, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Remove runtime check for EndMenu().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3ea7102c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
+5
-16
edit.c
dlls/user32/tests/edit.c
+3
-9
menu.c
dlls/user32/tests/menu.c
+2
-7
No files found.
dlls/user32/tests/edit.c
View file @
84a35f53
...
@@ -38,14 +38,12 @@ struct edit_notify {
...
@@ -38,14 +38,12 @@ struct edit_notify {
static
struct
edit_notify
notifications
;
static
struct
edit_notify
notifications
;
static
BOOL
(
WINAPI
*
pEndMenu
)
(
void
);
static
BOOL
(
WINAPI
*
pGetMenuBarInfo
)(
HWND
,
LONG
,
LONG
,
PMENUBARINFO
);
static
BOOL
(
WINAPI
*
pGetMenuBarInfo
)(
HWND
,
LONG
,
LONG
,
PMENUBARINFO
);
static
void
init_function_pointers
(
void
)
static
void
init_function_pointers
(
void
)
{
{
HMODULE
hdll
=
GetModuleHandleA
(
"user32"
);
HMODULE
hdll
=
GetModuleHandleA
(
"user32"
);
pEndMenu
=
(
void
*
)
GetProcAddress
(
hdll
,
"EndMenu"
);
pGetMenuBarInfo
=
(
void
*
)
GetProcAddress
(
hdll
,
"GetMenuBarInfo"
);
pGetMenuBarInfo
=
(
void
*
)
GetProcAddress
(
hdll
,
"GetMenuBarInfo"
);
}
}
...
@@ -2294,7 +2292,7 @@ static LRESULT CALLBACK edit4_wnd_procA(HWND hWnd, UINT msg, WPARAM wParam, LPAR
...
@@ -2294,7 +2292,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
=
TRUE
;
got_wm_capturechanged
=
TRUE
;
p
EndMenu
();
EndMenu
();
}
}
break
;
break
;
}
}
...
@@ -2337,7 +2335,7 @@ static LRESULT CALLBACK edit_proc_proxy(HWND hWnd, UINT msg, WPARAM wParam, LPAR
...
@@ -2337,7 +2335,7 @@ static LRESULT CALLBACK edit_proc_proxy(HWND hWnd, UINT msg, WPARAM wParam, LPAR
ok
(
!
mbi
.
fFocused
,
"mbi.fFocused = TRUE
\n
"
);
ok
(
!
mbi
.
fFocused
,
"mbi.fFocused = TRUE
\n
"
);
}
}
p
EndMenu
();
EndMenu
();
break
;
break
;
}
}
}
}
...
@@ -2985,11 +2983,7 @@ START_TEST(edit)
...
@@ -2985,11 +2983,7 @@ START_TEST(edit)
test_child_edit_wmkeydown
();
test_child_edit_wmkeydown
();
test_fontsize
();
test_fontsize
();
test_dialogmode
();
test_dialogmode
();
if
(
pEndMenu
)
test_contextmenu
();
test_contextmenu
();
else
win_skip
(
"EndMenu is not available
\n
"
);
test_EM_GETHANDLE
();
test_EM_GETHANDLE
();
test_paste
();
test_paste
();
...
...
dlls/user32/tests/menu.c
View file @
84a35f53
...
@@ -41,7 +41,6 @@ static BOOL (WINAPI *pGetMenuInfo)(HMENU,LPCMENUINFO);
...
@@ -41,7 +41,6 @@ static BOOL (WINAPI *pGetMenuInfo)(HMENU,LPCMENUINFO);
static
BOOL
(
WINAPI
*
pGetMenuBarInfo
)(
HWND
,
LONG
,
LONG
,
PMENUBARINFO
);
static
BOOL
(
WINAPI
*
pGetMenuBarInfo
)(
HWND
,
LONG
,
LONG
,
PMENUBARINFO
);
static
UINT
(
WINAPI
*
pSendInput
)(
UINT
,
INPUT
*
,
size_t
);
static
UINT
(
WINAPI
*
pSendInput
)(
UINT
,
INPUT
*
,
size_t
);
static
BOOL
(
WINAPI
*
pSetMenuInfo
)(
HMENU
,
LPCMENUINFO
);
static
BOOL
(
WINAPI
*
pSetMenuInfo
)(
HMENU
,
LPCMENUINFO
);
static
BOOL
(
WINAPI
*
pEndMenu
)
(
void
);
static
void
init_function_pointers
(
void
)
static
void
init_function_pointers
(
void
)
{
{
...
@@ -56,7 +55,6 @@ static void init_function_pointers(void)
...
@@ -56,7 +55,6 @@ static void init_function_pointers(void)
GET_PROC
(
GetMenuBarInfo
)
GET_PROC
(
GetMenuBarInfo
)
GET_PROC
(
SendInput
)
GET_PROC
(
SendInput
)
GET_PROC
(
SetMenuInfo
)
GET_PROC
(
SetMenuInfo
)
GET_PROC
(
EndMenu
)
#undef GET_PROC
#undef GET_PROC
}
}
...
@@ -3518,7 +3516,7 @@ static LRESULT WINAPI menu_cancelmode_wnd_proc(HWND hwnd, UINT msg,
...
@@ -3518,7 +3516,7 @@ static LRESULT WINAPI menu_cancelmode_wnd_proc(HWND hwnd, UINT msg,
PostMessageA
(
hwnd
,
WM_MOUSEMOVE
,
0
,
0
);
PostMessageA
(
hwnd
,
WM_MOUSEMOVE
,
0
,
0
);
return
SendMessageA
(
g_hwndtosend
,
WM_CANCELMODE
,
0
,
0
);
return
SendMessageA
(
g_hwndtosend
,
WM_CANCELMODE
,
0
,
0
);
}
}
p
EndMenu
();
EndMenu
();
return
TRUE
;
return
TRUE
;
}
}
}
}
...
@@ -3531,10 +3529,7 @@ static void test_menu_cancelmode(void)
...
@@ -3531,10 +3529,7 @@ static void test_menu_cancelmode(void)
HWND
hwnd
,
hwndchild
;
HWND
hwnd
,
hwndchild
;
HMENU
menu
,
menubar
;
HMENU
menu
,
menubar
;
MSG
msg
;
MSG
msg
;
if
(
!
pEndMenu
)
{
/* win95 */
win_skip
(
"EndMenu is not available
\n
"
);
return
;
}
hwnd
=
CreateWindowExA
(
0
,
(
LPCSTR
)
MAKEINTATOM
(
atomMenuCheckClass
),
NULL
,
hwnd
=
CreateWindowExA
(
0
,
(
LPCSTR
)
MAKEINTATOM
(
atomMenuCheckClass
),
NULL
,
WS_VISIBLE
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
200
,
200
,
WS_VISIBLE
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
200
,
200
,
NULL
,
NULL
,
NULL
,
NULL
);
NULL
,
NULL
,
NULL
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment