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
1b271735
Commit
1b271735
authored
Jan 25, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apphelp/tests: Use common wine_dbgstr_guid implementation from test.h.
parent
9134a24e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
apphelp.c
dlls/apphelp/tests/apphelp.c
+3
-15
No files found.
dlls/apphelp/tests/apphelp.c
View file @
1b271735
...
...
@@ -47,18 +47,6 @@ static const CLSID * objects[] = {
&
test_UserAssist
,
NULL
,};
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
static
char
buf
[
50
];
sprintf
(
buf
,
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
riid
->
Data1
,
riid
->
Data2
,
riid
->
Data3
,
riid
->
Data4
[
0
],
riid
->
Data4
[
1
],
riid
->
Data4
[
2
],
riid
->
Data4
[
3
],
riid
->
Data4
[
4
],
riid
->
Data4
[
5
],
riid
->
Data4
[
6
],
riid
->
Data4
[
7
]);
return
buf
;
}
static
void
test_ApphelpCheckShellObject
(
void
)
{
ULONGLONG
flags
;
...
...
@@ -77,20 +65,20 @@ static void test_ApphelpCheckShellObject(void)
SetLastError
(
0xdeadbeef
);
res
=
pApphelpCheckShellObject
(
objects
[
i
],
FALSE
,
&
flags
);
ok
(
res
&&
(
flags
==
0
),
"%s 0: got %d and 0x%x%08x with 0x%x (expected TRUE and 0)
\n
"
,
debu
gstr_guid
(
objects
[
i
]),
res
,
(
ULONG
)(
flags
>>
32
),
(
ULONG
)
flags
,
GetLastError
());
wine_db
gstr_guid
(
objects
[
i
]),
res
,
(
ULONG
)(
flags
>>
32
),
(
ULONG
)
flags
,
GetLastError
());
flags
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
res
=
pApphelpCheckShellObject
(
objects
[
i
],
TRUE
,
&
flags
);
ok
(
res
&&
(
flags
==
0
),
"%s 1: got %d and 0x%x%08x with 0x%x (expected TRUE and 0)
\n
"
,
debu
gstr_guid
(
objects
[
i
]),
res
,
(
ULONG
)(
flags
>>
32
),
(
ULONG
)
flags
,
GetLastError
());
wine_db
gstr_guid
(
objects
[
i
]),
res
,
(
ULONG
)(
flags
>>
32
),
(
ULONG
)
flags
,
GetLastError
());
}
/* NULL as pointer to flags is checked */
SetLastError
(
0xdeadbeef
);
res
=
pApphelpCheckShellObject
(
&
GUID_NULL
,
FALSE
,
NULL
);
ok
(
res
,
"%s 0: got %d with 0x%x (expected != FALSE)
\n
"
,
debu
gstr_guid
(
&
GUID_NULL
),
res
,
GetLastError
());
ok
(
res
,
"%s 0: got %d with 0x%x (expected != FALSE)
\n
"
,
wine_db
gstr_guid
(
&
GUID_NULL
),
res
,
GetLastError
());
/* NULL as CLSID* crash on Windows */
if
(
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