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
636340ce
Commit
636340ce
authored
Jun 07, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Make wine_dbgstr_rect() available for tests too.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
03840373
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
test.h
include/wine/test.h
+12
-0
No files found.
include/wine/test.h
View file @
636340ce
...
...
@@ -66,6 +66,7 @@ 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
);
extern
const
char
*
wine_dbgstr_rect
(
const
RECT
*
rect
);
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
...
...
@@ -529,6 +530,17 @@ const char *wine_dbgstr_guid( const GUID *guid )
return
res
;
}
const
char
*
wine_dbgstr_rect
(
const
RECT
*
rect
)
{
char
*
res
;
if
(
!
rect
)
return
"(null)"
;
res
=
get_temp_buffer
(
60
);
sprintf
(
res
,
"(%d,%d)-(%d,%d)"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
);
release_temp_buffer
(
res
,
strlen
(
res
)
+
1
);
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