mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:45:56 +00:00
[INCLUDES/WINE] Update test.h.
svn path=/trunk/; revision=71895
This commit is contained in:
parent
dc0f375a2d
commit
a4db20e9a9
1 changed files with 16 additions and 0 deletions
|
@ -70,6 +70,7 @@ extern void winetest_wait_child_process( HANDLE process );
|
|||
|
||||
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 @@ 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 );
|
||||
#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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue