summaryrefslogtreecommitdiff
path: root/src/vm/dwreport.cpp
diff options
context:
space:
mode:
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;
}
+ }