Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5191f0f2
Commit
5191f0f2
authored
Jun 20, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Skip tests if functions are not implemented.
parent
d9bf3b5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
msg.c
dlls/user32/tests/msg.c
+11
-2
No files found.
dlls/user32/tests/msg.c
View file @
5191f0f2
...
@@ -1521,7 +1521,9 @@ static int log_all_parent_messages;
...
@@ -1521,7 +1521,9 @@ static int log_all_parent_messages;
/* user32 functions */
/* user32 functions */
static
HWND
(
WINAPI
*
pGetAncestor
)(
HWND
,
UINT
);
static
HWND
(
WINAPI
*
pGetAncestor
)(
HWND
,
UINT
);
static
BOOL
(
WINAPI
*
pGetMenuInfo
)(
HMENU
,
LPCMENUINFO
);
static
void
(
WINAPI
*
pNotifyWinEvent
)(
DWORD
,
HWND
,
LONG
,
LONG
);
static
void
(
WINAPI
*
pNotifyWinEvent
)(
DWORD
,
HWND
,
LONG
,
LONG
);
static
BOOL
(
WINAPI
*
pSetMenuInfo
)(
HMENU
,
LPCMENUINFO
);
static
HWINEVENTHOOK
(
WINAPI
*
pSetWinEventHook
)(
DWORD
,
DWORD
,
HMODULE
,
WINEVENTPROC
,
DWORD
,
DWORD
,
DWORD
);
static
HWINEVENTHOOK
(
WINAPI
*
pSetWinEventHook
)(
DWORD
,
DWORD
,
HMODULE
,
WINEVENTPROC
,
DWORD
,
DWORD
,
DWORD
);
static
BOOL
(
WINAPI
*
pTrackMouseEvent
)(
TRACKMOUSEEVENT
*
);
static
BOOL
(
WINAPI
*
pTrackMouseEvent
)(
TRACKMOUSEEVENT
*
);
static
BOOL
(
WINAPI
*
pUnhookWinEvent
)(
HWINEVENTHOOK
);
static
BOOL
(
WINAPI
*
pUnhookWinEvent
)(
HWINEVENTHOOK
);
...
@@ -1540,7 +1542,9 @@ static void init_procs(void)
...
@@ -1540,7 +1542,9 @@ static void init_procs(void)
}
}
GET_PROC
(
user32
,
GetAncestor
)
GET_PROC
(
user32
,
GetAncestor
)
GET_PROC
(
user32
,
GetMenuInfo
)
GET_PROC
(
user32
,
NotifyWinEvent
)
GET_PROC
(
user32
,
NotifyWinEvent
)
GET_PROC
(
user32
,
SetMenuInfo
)
GET_PROC
(
user32
,
SetWinEventHook
)
GET_PROC
(
user32
,
SetWinEventHook
)
GET_PROC
(
user32
,
TrackMouseEvent
)
GET_PROC
(
user32
,
TrackMouseEvent
)
GET_PROC
(
user32
,
UnhookWinEvent
)
GET_PROC
(
user32
,
UnhookWinEvent
)
...
@@ -10574,7 +10578,7 @@ static void set_menu_style(HMENU hmenu, DWORD style)
...
@@ -10574,7 +10578,7 @@ static void set_menu_style(HMENU hmenu, DWORD style)
mi
.
fMask
=
MIM_STYLE
;
mi
.
fMask
=
MIM_STYLE
;
mi
.
dwStyle
=
style
;
mi
.
dwStyle
=
style
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
SetMenuInfo
(
hmenu
,
&
mi
);
ret
=
p
SetMenuInfo
(
hmenu
,
&
mi
);
ok
(
ret
,
"SetMenuInfo error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"SetMenuInfo error %u
\n
"
,
GetLastError
());
}
}
...
@@ -10587,7 +10591,7 @@ static DWORD get_menu_style(HMENU hmenu)
...
@@ -10587,7 +10591,7 @@ static DWORD get_menu_style(HMENU hmenu)
mi
.
fMask
=
MIM_STYLE
;
mi
.
fMask
=
MIM_STYLE
;
mi
.
dwStyle
=
0
;
mi
.
dwStyle
=
0
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
GetMenuInfo
(
hmenu
,
&
mi
);
ret
=
p
GetMenuInfo
(
hmenu
,
&
mi
);
ok
(
ret
,
"GetMenuInfo error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"GetMenuInfo error %u
\n
"
,
GetLastError
());
return
mi
.
dwStyle
;
return
mi
.
dwStyle
;
...
@@ -10601,6 +10605,11 @@ static void test_menu_messages(void)
...
@@ -10601,6 +10605,11 @@ static void test_menu_messages(void)
HWND
hwnd
;
HWND
hwnd
;
DWORD
style
;
DWORD
style
;
if
(
!
pGetMenuInfo
||
!
pSetMenuInfo
)
{
skip
(
"GetMenuInfo and/or SetMenuInfo are not available
\n
"
);
return
;
}
cls
.
style
=
0
;
cls
.
style
=
0
;
cls
.
lpfnWndProc
=
parent_menu_proc
;
cls
.
lpfnWndProc
=
parent_menu_proc
;
cls
.
cbClsExtra
=
0
;
cls
.
cbClsExtra
=
0
;
...
...
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