summaryrefslogtreecommitdiff
path: root/sal/qa/osl/profile
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-01-14 15:11:09 +0100
committersb <sb@openoffice.org>2010-01-14 15:11:09 +0100
commit58c8708eec09080015a1d35cf9ca66c89d9e3599 (patch)
tree5a0a27c7be45811259f1bc34aede06e530a39e09 /sal/qa/osl/profile
parent514ec60a0e06d521f9c6646cb2bbd29318e300a8 (diff)
sb118: fixed tests for wntmsci12
Diffstat (limited to 'sal/qa/osl/profile')
-rw-r--r--sal/qa/osl/profile/osl_old_testprofile.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sal/qa/osl/profile/osl_old_testprofile.cxx b/sal/qa/osl/profile/osl_old_testprofile.cxx
index 65495407241d..abbd59f76a65 100644
--- a/sal/qa/osl/profile/osl_old_testprofile.cxx
+++ b/sal/qa/osl/profile/osl_old_testprofile.cxx
@@ -70,7 +70,8 @@ void oldtests::test_profile(void)
// successful write
- if ((hProfile = osl_openProfile( ustrProfileName, 0 )))
+ hProfile = osl_openProfile( ustrProfileName, 0 );
+ if (hProfile != 0)
{
if (! osl_writeProfileBool( hProfile, "testsection", "testbool", 1 ))
printf( "### cannot write into init file!\n" );
@@ -79,7 +80,8 @@ void oldtests::test_profile(void)
}
// unsuccessful write
- if ((hProfile = osl_openProfile( ustrProfileName2, 0 )))
+ hProfile = osl_openProfile( ustrProfileName2, 0 );
+ if (hProfile != 0)
{
if (osl_writeProfileBool( hProfile, "testsection", "testbool", 1 ))
printf( "### unexpected success writing into test2.ini!\n" );