diff options
author | Koundinya Veluri <kouvel@microsoft.com> | 2017-05-09 13:56:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-09 13:56:40 -0700 |
commit | c8a37801f8483d05766e0bf053ffa41aaa155f2c (patch) | |
tree | 8e01a17aa262b0779668b845069bd57d2d50d67b /src/vm/dwreport.cpp | |
parent | 39a841c33a6ae70cc887ee9fa7cfdeb834c6ca59 (diff) | |
download | coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.gz coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.bz2 coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.zip |
Fix static analysis issues (#11466)
Fix static analysis issues
Diffstat (limited to 'src/vm/dwreport.cpp')
-rw-r--r-- | src/vm/dwreport.cpp | 42 |
1 files changed, 20 insertions, 22 deletions
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; } + } |