Commit e5e86776 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 02228ff5
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment