Author: akhaldi
Date: Mon Jul 11 10:47:42 2016
New Revision: 71895
URL:
http://svn.reactos.org/svn/reactos?rev=71895&view=rev
Log:
[INCLUDES/WINE] Update test.h.
Modified:
trunk/reactos/sdk/include/reactos/wine/test.h
Modified: trunk/reactos/sdk/include/reactos/wine/test.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/reactos/wine/t…
==============================================================================
--- trunk/reactos/sdk/include/reactos/wine/test.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/reactos/wine/test.h [iso-8859-1] Mon Jul 11 10:47:42 2016
@@ -70,6 +70,7 @@
extern const char *wine_dbgstr_wn( const WCHAR *str, intptr_t 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
@@ -574,6 +575,21 @@
return res;
}
+const char *wine_dbgstr_rect( const RECT *rect )
+{
+ char *res;
+
+ if (!rect) return "(null)";
+ res = get_temp_buffer( 60 );
+#ifdef __ROS_LONG64__
+ sprintf( res, "(%d,%d)-(%d,%d)", rect->left, rect->top,
rect->right, rect->bottom );
+#else
+ sprintf( res, "(%ld,%ld)-(%ld,%ld)", rect->left, rect->top,
rect->right, rect->bottom );
+#endif
+ release_temp_buffer( res, strlen(res) + 1 );
+ return res;
+}
+
/* Find a test by name */
static const struct test *find_test( const char *name )
{