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
9134a24e
Commit
9134a24e
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
include: Make wine_dbgstr_guid available in test.h for all tests.
parent
979e2d3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
test.h
include/wine/test.h
+14
-0
No files found.
include/wine/test.h
View file @
9134a24e
...
...
@@ -65,6 +65,7 @@ extern void winetest_add_failures( LONG new_failures );
extern
void
winetest_wait_child_process
(
HANDLE
process
);
extern
const
char
*
wine_dbgstr_wn
(
const
WCHAR
*
str
,
int
n
);
extern
const
char
*
wine_dbgstr_guid
(
const
GUID
*
guid
);
static
inline
const
char
*
wine_dbgstr_w
(
const
WCHAR
*
s
)
{
return
wine_dbgstr_wn
(
s
,
-
1
);
}
/* strcmpW is available for tests compiled under Wine, but not in standalone
...
...
@@ -523,6 +524,19 @@ const char *wine_dbgstr_wn( const WCHAR *str, int n )
return
res
;
}
const
char
*
wine_dbgstr_guid
(
const
GUID
*
guid
)
{
char
*
res
;
if
(
!
guid
)
return
"(null)"
;
res
=
get_temp_buffer
(
39
);
/* CHARS_IN_GUID */
sprintf
(
res
,
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
guid
->
Data1
,
guid
->
Data2
,
guid
->
Data3
,
guid
->
Data4
[
0
],
guid
->
Data4
[
1
],
guid
->
Data4
[
2
],
guid
->
Data4
[
3
],
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]
);
return
res
;
}
/* Find a test by name */
static
const
struct
test
*
find_test
(
const
char
*
name
)
{
...
...
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