oleaut32/tests: Use win_skip() when detecting an API is missing.

oldstable
Francois Gouget 2012-01-09 09:57:30 +01:00 committed by Alexandre Julliard
parent daeb4d6d29
commit 559cdbfc7c
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ static HRESULT (WINAPI *pVarWeekdayName)(int,int,int,ULONG,BSTR*);
/* Get a conversion function ptr, return if function not available */
#define CHECKPTR(func) p##func = (void*)GetProcAddress(hOleaut32, #func); \
if (!p##func) { trace("function " # func " not available, not testing it\n"); return; }
if (!p##func) { win_skip("function " # func " not available, not testing it\n"); return; }
static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 )
{

View File

@ -55,7 +55,7 @@ static WCHAR sz12_true[32];
/* Get a conversion function ptr, return if function not available */
#define CHECKPTR(func) p##func = (void*)GetProcAddress(hOleaut32, #func); \
if (!p##func) { trace("function " # func " not available, not testing it\n"); return; }
if (!p##func) { win_skip("function " # func " not available, not testing it\n"); return; }
/* Have IRecordInfo data type? */
static int HAVE_OLEAUT32_RECORD = 0;