summaryrefslogtreecommitdiff
path: root/src/ToolBox/SOS/Strike/WatchCmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolBox/SOS/Strike/WatchCmd.cpp')
-rw-r--r--src/ToolBox/SOS/Strike/WatchCmd.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/ToolBox/SOS/Strike/WatchCmd.cpp b/src/ToolBox/SOS/Strike/WatchCmd.cpp
index 9457485dc7..443f1dd6ef 100644
--- a/src/ToolBox/SOS/Strike/WatchCmd.cpp
+++ b/src/ToolBox/SOS/Strike/WatchCmd.cpp
@@ -92,16 +92,8 @@ HRESULT WatchCmd::Remove(int index)
HRESULT WatchCmd::Print(int expansionIndex, __in_z WCHAR* expansionPath, __in_z WCHAR* pFilterName)
{
HRESULT Status = S_OK;
- if ((Status = CheckEEDll()) != S_OK)
- {
- EENotLoadedMessage(Status);
- return Status;
- }
- if ((Status = LoadClrDebugDll()) != S_OK)
- {
- DACMessage(Status);
- return Status;
- }
+ INIT_API_EE();
+ INIT_API_DAC();
EnableDMLHolder dmlHolder(TRUE);
IfFailRet(InitCorDebugInterface());
@@ -214,6 +206,8 @@ HRESULT WatchCmd::RenameList(__in_z WCHAR* pOldName, __in_z WCHAR* pNewName)
HRESULT WatchCmd::SaveList(__in_z WCHAR* pSaveName)
{
HRESULT Status = S_OK;
+ INIT_API_EE();
+ INIT_API_DAC();
IfFailRet(InitCorDebugInterface());
RemoveList(pSaveName);