oleaut32/tests: Move string allocation after function pointer check (Coverity).

This commit is contained in:
Nikolay Sivov 2014-03-24 20:01:50 +04:00 committed by Alexandre Julliard
parent 02228ff585
commit e5e8677666
1 changed files with 4 additions and 4 deletions

View File

@ -6000,11 +6000,11 @@ static void test_VarAnd(void)
VARTYPE i;
HRESULT hres;
CHECKPTR(VarAnd);
true_str = SysAllocString(szTrue);
false_str = SysAllocString(szFalse);
CHECKPTR(VarAnd);
/* Test all possible flag/vt combinations & the resulting vt type */
for (i = 0; i < sizeof(ExtraFlags)/sizeof(ExtraFlags[0]); i++)
{
@ -7479,11 +7479,11 @@ static void test_VarDiv(void)
HRESULT hres;
double r;
CHECKPTR(VarDiv);
num1_str = SysAllocString(str1);
num2_str = SysAllocString(str2);
CHECKPTR(VarDiv);
/* Test all possible flag/vt combinations & the resulting vt type */
for (i = 0; i < sizeof(ExtraFlags)/sizeof(ExtraFlags[0]); i++)
{