Module: wine Branch: oldstable Commit: 46ac41ba7b5de8aba2ab7fef637f825fc7083d1e URL: http://source.winehq.org/git/wine.git/?a=commit;h=46ac41ba7b5de8aba2ab7fef63...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue Jun 7 09:45:40 2016 +0200
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 (cherry picked from commit 636340ce34e1ef7996eb48c8717b3bdb39dcdc8d) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
include/wine/test.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/include/wine/test.h b/include/wine/test.h index 862d553..8f6db18 100644 --- a/include/wine/test.h +++ b/include/wine/test.h @@ -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 @@ -534,6 +535,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 ) {