diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-12 17:01:15 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-12 17:28:52 +0100 |
commit | 6c6d9793730b836e761adba1d02694c133047b09 (patch) | |
tree | c354508ac167f8b6213a7899fad97df763fa118f /extensions | |
parent | 91c059023f36217761cbdd281ba286d8e63258c9 (diff) |
extensions: PVS-Studio V716 Suspicious type conversion: BOOL -> HRESULT
Change-Id: I3ab73401b29be79ae5457c9f8905ad35e6f0c5fa
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/update/check/updatecheckconfig.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/update/check/updatecheckconfig.cxx b/extensions/source/update/check/updatecheckconfig.cxx index 6ef83921a09c..a1c5c97fd290 100644 --- a/extensions/source/update/check/updatecheckconfig.cxx +++ b/extensions/source/update/check/updatecheckconfig.cxx @@ -190,7 +190,7 @@ OUString UpdateCheckConfig::getDesktopDirectory() #ifdef WNT WCHAR szPath[MAX_PATH]; - if( ! FAILED( SHGetSpecialFolderPathW( NULL, szPath, CSIDL_DESKTOPDIRECTORY, true ) ) ) + if (TRUE == SHGetSpecialFolderPathW(nullptr, szPath, CSIDL_DESKTOPDIRECTORY, true)) { aRet = OUString( reinterpret_cast< sal_Unicode * >(szPath) ); osl::FileBase::getFileURLFromSystemPath( aRet, aRet ); @@ -219,7 +219,7 @@ OUString UpdateCheckConfig::getAllUsersDirectory() #ifdef WNT WCHAR szPath[MAX_PATH]; - if( ! FAILED( SHGetSpecialFolderPathW( NULL, szPath, CSIDL_COMMON_DOCUMENTS, true ) ) ) + if (TRUE == SHGetSpecialFolderPathW(nullptr, szPath, CSIDL_COMMON_DOCUMENTS, true)) { aRet = OUString( reinterpret_cast< sal_Unicode * >(szPath) ); osl::FileBase::getFileURLFromSystemPath( aRet, aRet ); |