mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[WINE/TEST.H]
* Sync with Wine 1.7.17. CORE-8080 svn path=/trunk/; revision=62782
This commit is contained in:
parent
7417488583
commit
b9ecc0ff3f
1 changed files with 14 additions and 0 deletions
|
@ -69,6 +69,7 @@ extern void winetest_add_failures( LONG new_failures );
|
||||||
extern void winetest_wait_child_process( HANDLE process );
|
extern void winetest_wait_child_process( HANDLE process );
|
||||||
|
|
||||||
extern const char *wine_dbgstr_wn( const WCHAR *str, int n );
|
extern const char *wine_dbgstr_wn( const WCHAR *str, int n );
|
||||||
|
extern const char *wine_dbgstr_guid( const GUID *guid );
|
||||||
static inline const char *wine_dbgstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); }
|
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
|
/* strcmpW is available for tests compiled under Wine, but not in standalone
|
||||||
|
@ -541,6 +542,19 @@ const char *wine_dbgstr_wn( const WCHAR *str, int n )
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *wine_dbgstr_guid( const GUID *guid )
|
||||||
|
{
|
||||||
|
char *res;
|
||||||
|
|
||||||
|
if (!guid) return "(null)";
|
||||||
|
res = get_temp_buffer( 39 ); /* CHARS_IN_GUID */
|
||||||
|
sprintf( res, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
|
||||||
|
guid->Data1, guid->Data2, guid->Data3, guid->Data4[0],
|
||||||
|
guid->Data4[1], guid->Data4[2], guid->Data4[3], guid->Data4[4],
|
||||||
|
guid->Data4[5], guid->Data4[6], guid->Data4[7] );
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
/* Find a test by name */
|
/* Find a test by name */
|
||||||
static const struct test *find_test( const char *name )
|
static const struct test *find_test( const char *name )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue