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>
This commit is contained in:
Michael Stefaniuc 2016-06-07 09:45:40 +02:00 committed by Alexandre Julliard
parent 03840373ef
commit 636340ce34
1 changed files with 12 additions and 0 deletions

View File

@ -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 )
{