summaryrefslogtreecommitdiff
path: root/src/vm/dwreport.cpp
diff options
context:
space:
mode:
authorKoundinya Veluri <kouvel@microsoft.com>2017-05-09 13:56:40 -0700
committerGitHub <noreply@github.com>2017-05-09 13:56:40 -0700
commitc8a37801f8483d05766e0bf053ffa41aaa155f2c (patch)
tree8e01a17aa262b0779668b845069bd57d2d50d67b /src/vm/dwreport.cpp
parent39a841c33a6ae70cc887ee9fa7cfdeb834c6ca59 (diff)
downloadcoreclr-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.cpp42
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;
}
+ }