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
c369759c
Commit
c369759c
authored
Nov 20, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix the systray tests on Win9x and NT4.
parent
f1d0f81d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
systray.c
dlls/shell32/tests/systray.c
+18
-12
No files found.
dlls/shell32/tests/systray.c
View file @
c369759c
...
...
@@ -31,6 +31,7 @@ static BOOL (WINAPI *pShell_NotifyIconW)(DWORD,PNOTIFYICONDATAW);
void
test_cbsize
(
void
)
{
NOTIFYICONDATAA
nidA
;
BOOL
ret
;
if
(
pShell_NotifyIconW
)
{
...
...
@@ -43,16 +44,20 @@ void test_cbsize(void)
nidW
.
uFlags
=
NIF_ICON
|
NIF_MESSAGE
;
nidW
.
hIcon
=
LoadIcon
(
NULL
,
IDI_APPLICATION
);
nidW
.
uCallbackMessage
=
WM_USER
+
17
;
ok
(
pShell_NotifyIconW
(
NIM_ADD
,
&
nidW
),
"NIM_ADD failed!
\n
"
);
/* using an invalid cbSize does work */
nidW
.
cbSize
=
3
;
nidW
.
hWnd
=
hMainWnd
;
nidW
.
uID
=
1
;
ok
(
pShell_NotifyIconW
(
NIM_DELETE
,
&
nidW
),
"NIM_DELETE failed!
\n
"
);
/* as icon doesn't exist anymore - now there will be an error */
nidW
.
cbSize
=
sizeof
(
nidW
);
ok
(
!
pShell_NotifyIconW
(
NIM_DELETE
,
&
nidW
),
"The icon was not deleted
\n
"
);
ret
=
pShell_NotifyIconW
(
NIM_ADD
,
&
nidW
);
if
(
ret
)
{
/* using an invalid cbSize does work */
nidW
.
cbSize
=
3
;
nidW
.
hWnd
=
hMainWnd
;
nidW
.
uID
=
1
;
ret
=
pShell_NotifyIconW
(
NIM_DELETE
,
&
nidW
);
ok
(
ret
||
broken
(
!
ret
),
/* nt4 */
"NIM_DELETE failed!
\n
"
);
/* as icon doesn't exist anymore - now there will be an error */
nidW
.
cbSize
=
sizeof
(
nidW
);
ok
(
!
pShell_NotifyIconW
(
NIM_DELETE
,
&
nidW
)
!=
!
ret
,
"The icon was not deleted
\n
"
);
}
else
win_skip
(
"Shell_NotifyIconW not working
\n
"
);
/* win9x */
}
/* same for Shell_NotifyIconA */
...
...
@@ -69,10 +74,11 @@ void test_cbsize(void)
nidA
.
cbSize
=
3
;
nidA
.
hWnd
=
hMainWnd
;
nidA
.
uID
=
1
;
ok
(
Shell_NotifyIconA
(
NIM_DELETE
,
&
nidA
),
"NIM_DELETE failed!
\n
"
);
ret
=
Shell_NotifyIconA
(
NIM_DELETE
,
&
nidA
);
ok
(
ret
||
broken
(
!
ret
),
/* win9x */
"NIM_DELETE failed!
\n
"
);
/* as icon doesn't exist anymore - now there will be an error */
nidA
.
cbSize
=
sizeof
(
nidA
);
ok
(
!
Shell_NotifyIconA
(
NIM_DELETE
,
&
nidA
),
"The icon was not deleted
\n
"
);
ok
(
!
Shell_NotifyIconA
(
NIM_DELETE
,
&
nidA
)
!=
!
ret
,
"The icon was not deleted
\n
"
);
}
START_TEST
(
systray
)
...
...
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