From c8a37801f8483d05766e0bf053ffa41aaa155f2c Mon Sep 17 00:00:00 2001 From: Koundinya Veluri Date: Tue, 9 May 2017 13:56:40 -0700 Subject: Fix static analysis issues (#11466) Fix static analysis issues --- src/vm/dwreport.cpp | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) (limited to 'src/vm/dwreport.cpp') diff --git a/src/vm/dwreport.cpp b/src/vm/dwreport.cpp index b95c59ff8d..57d67e7c22 100644 --- a/src/vm/dwreport.cpp +++ b/src/vm/dwreport.cpp @@ -1526,30 +1526,28 @@ BOOL RunWatson( return false; } + { + BOOL ret = WszCreateProcess(watsonAppName, + watsonCommandLine, + NULL, + NULL, + TRUE, + NULL, + NULL, + NULL, + &startupInfo, + &processInformation); + + if (FALSE == ret) { - BOOL ret = WszCreateProcess(watsonAppName, - watsonCommandLine, - NULL, - NULL, - TRUE, - NULL, - NULL, - NULL, - &startupInfo, - &processInformation); - - if (FALSE == ret) - { - // - // Watson failed to start up. - // - // This can happen if e.g. Watson wasn't installed on the machine. - // - return E_FAIL; - - } - + // + // Watson failed to start up. + // + // This can happen if e.g. Watson wasn't installed on the machine. + // + return FALSE; } + } -- cgit v1.2.3