1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed null function references showing as "<null parent>"

This commit is contained in:
Brian Fiete 2019-09-04 11:31:58 -07:00
parent 8659afa944
commit d28392f8fd

View file

@ -7551,6 +7551,9 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
ptrUseDataStr = ptrDataStr;
}
bool isNull = wasPtr && (dataPtr == 0);
bool isBadSrc = !wasPtr && (dataPtr == 0);
if ((ptrVal == 0) && (dwValueType->IsTypedPrimitive()))
{
DbgTypedValue rawVal;
@ -7574,15 +7577,15 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
ptrDataStr = expr;
ptrUseDataStr = expr;
}
// This keeps 'function' types from showing null as "<null parent>"
isBadSrc = false;
}
else if ((ptrVal == 0) && (dwValueType->IsCompositeType()))
{
}
bool isNull = wasPtr && (dataPtr == 0);
bool isBadSrc = !wasPtr && (dataPtr == 0);
DbgTypedValue useTypedValue = typedValue;
if ((origHadRef) || ((typedValue.mType->HasPointer()) && (!dwUseType->HasPointer())))
{