summaryrefslogtreecommitdiff
path: root/src/debug/di
diff options
context:
space:
mode:
authorSasha Semennikov <alsemenn@sashas-mbp.guest.corp.microsoft.com>2016-08-02 16:45:21 -0700
committerSasha Semennikov <alsemenn@sashas-mbp.guest.corp.microsoft.com>2016-08-05 13:23:14 -0700
commit0414d77f4796baf246bce548d8e4bfd9b9daa482 (patch)
tree63256bcb5f4ac8250b05362442c933caa2175250 /src/debug/di
parent3de3ad5792922657efb9438ebdb87a501b5c457b (diff)
downloadcoreclr-0414d77f4796baf246bce548d8e4bfd9b9daa482.tar.gz
coreclr-0414d77f4796baf246bce548d8e4bfd9b9daa482.tar.bz2
coreclr-0414d77f4796baf246bce548d8e4bfd9b9daa482.zip
For helper method frame DAC doesn't read register pointers. So set them to NULL to not user "wrong" data.
Moved context pointers NULL assignment to gmsamd64.cpp Squash commits
Diffstat (limited to 'src/debug/di')
-rw-r--r--src/debug/di/divalue.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/debug/di/divalue.cpp b/src/debug/di/divalue.cpp
index b5ec8ac3f5..50ecd68aa9 100644
--- a/src/debug/di/divalue.cpp
+++ b/src/debug/di/divalue.cpp
@@ -1324,8 +1324,11 @@ HRESULT CordbReferenceValue::BuildFromGCHandle(
NULL, // EnregisteredValueHome * pRemoteRegAddr,
&pRefValue);
- pRefValue->QueryInterface(__uuidof(ICorDebugReferenceValue), (void**)pOutRef);
-
+ if (SUCCEEDED(hr))
+ {
+ pRefValue->QueryInterface(__uuidof(ICorDebugReferenceValue), (void**)pOutRef);
+ }
+
return hr;
}