Skip to content

Commit 1270809

Browse files
committed
No need to switch here.
1 parent 3bb9d19 commit 1270809

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Nodes/BaseFunctionPtrNode.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,15 @@ protected int Draw(ViewInfo view, int x, int y, string type, string name)
5555

5656
if (Program.Settings.ShowCommentSymbol)
5757
{
58-
#if WIN64
59-
var value = view.Memory.ReadObject<UInt64FloatDoubleData>(Offset);
60-
#else
61-
var value = view.Memory.ReadObject<UInt32FloatData>(Offset);
62-
#endif
58+
var value = view.Memory.ReadObject<IntPtr>(Offset);
6359

64-
var module = view.Memory.Process.GetModuleToPointer(value.IntPtr);
60+
var module = view.Memory.Process.GetModuleToPointer(value);
6561
if (module != null)
6662
{
6763
var symbols = view.Memory.Process.Symbols.GetSymbolsForModule(module);
6864
if (symbols != null)
6965
{
70-
var symbol = symbols.GetSymbolString(value.IntPtr, module);
66+
var symbol = symbols.GetSymbolString(value, module);
7167
if (!string.IsNullOrEmpty(symbol))
7268
{
7369
x = AddText(view, x, y, Program.Settings.OffsetColor, HotSpot.NoneId, symbol) + view.Font.Width;

0 commit comments

Comments
 (0)