From 6a12a9e941283fe32d7714d4aee694c397996c3a Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 27 Oct 2018 15:11:25 +0300 Subject: tdf#120703 PVS: V530 The return value of function is required to be utilized Change-Id: Ifc170a45e25b3fd5b7f561cc50afb6452bb359bd Reviewed-on: https://gerrit.libreoffice.org/62420 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sfx2/source/appl/shutdowniconw32.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx index b48b1e5e6875..b6fd1741a360 100644 --- a/sfx2/source/appl/shutdowniconw32.cxx +++ b/sfx2/source/appl/shutdowniconw32.cxx @@ -621,8 +621,7 @@ void OnDrawItem(HWND /*hwnd*/, LPDRAWITEMSTRUCT lpdis) hModule = GetModuleHandleW( pModuleName ); if ( hModule == nullptr ) { - LoadLibraryW( pModuleName ); - hModule = GetModuleHandleW( pModuleName ); + hModule = LoadLibraryW(pModuleName); } } -- cgit