Nikolay Sivov : oleaut32/tests: Move string allocation after function pointer check (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Mar 24 15:59:47 CDT 2014
Module: wine
Branch: master
Commit: e5e86776664a19aeb009fb27f5fe6efcf04494ba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5e86776664a19aeb009fb27f5fe6efcf04494ba
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Mar 24 20:01:50 2014 +0400
oleaut32/tests: Move string allocation after function pointer check (Coverity).
---
dlls/oleaut32/tests/vartest.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index d28b5c1..bfbc0b2 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -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++)
{
More information about the wine-cvs
mailing list